Nexploit orbs not working

Hello,

I was trying to use nexploit orbs but I am facing errors. I have the following in my config.yml

version: 2.1
orbs:
  nexploit: neuralegion/nexploit@2.0.2
jobs:
  build:
    machine: true
    steps:
      - nexploit/scan:
          scan_name: CircleCI Scan
          api_key: NEXPLOIT_TOKEN
          discovery_types: crawler
          crawlers: 'https://www.example.com/'
          headers: 'Content-Type: application/json;Keep-Alive: timeout=5, max=1000'
          type: appscan
          protocol: http

workflows:
  build-main:
    jobs:
      - build:
          context:
            - test 

The error says Cannot find a definition for command named nexploit/scan, so I changed nexploit/scan to nexploit/new-scan. It then stop giving the error but now I get the following error:

/bin/bash: line 11: nexploit-cli: command not found

what am I doing wrong here?

orbs link: https://circleci.com/developer/orbs/orb/neuralegion/nexploit

:wave: Hi @pkhadka56, and welcome to the CircleCI community!

You need to install the nexploit-cli util to the environment.

This can be achieved by executing the orb’s install command.

So your config.yml would be:

version: 2.1
orbs:
  nexploit: neuralegion/nexploit@2.0.2
jobs:
  build:
    machine: true
    steps:
      - nexploit/install
      - nexploit/new-scan:
          scan_name: CircleCI Scan
          api_key: NEXPLOIT_TOKEN
          discovery_types: crawler
          crawlers: 'https://www.example.com/'
          headers: 'Content-Type: application/json;Keep-Alive: timeout=5, max=1000'
          type: appscan
          protocol: http

workflows:
  build-main:
    jobs:
      - build:
          context:
            - test 

 
Let me know if this helps