@dasta-ai-app/cli
v0.1.7
Published
DASTA-AI security scanning CLI
Readme
DASTA-AI CLI
Automate security scanning from your terminal and CI/CD pipelines.
Install
npm install -g @dasta-ai-app/cliRequires Node.js 18 or later. Works on Windows, macOS, and Linux.
Quick start
# Authenticate
dasta login
# Run a scan
dasta scan https://example.com
# Push results to your dashboard
dasta scan https://example.com --push
# Output SARIF for GitHub Code Scanning
dasta scan https://example.com --output sarif --output-file dasta.sarif --fail-on highCI/CD (GitHub Actions)
- name: DASTA-AI scan
env:
DASTA_API_TOKEN: ${{ secrets.DASTA_API_TOKEN }}
run: |
npm install -g @dasta-ai-app/cli
dasta scan ${{ vars.STAGING_URL }} --output sarif --output-file dasta.sarif --fail-on high
- name: Upload SARIF
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: dasta.sarifHelp
dasta --help
dasta scan --help
dasta token --helpDocumentation
Full documentation (install, authentication, scan options, config files, CI/CD examples, exit codes) is available in your DASTA-AI account under Docs.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Generic error |
| 2 | Authentication required |
| 3 | Quota exhausted / access denied |
| 4 | Target or scan failure |
| 5 | --fail-on threshold met |
| 124 | Timeout |
| 130 | Interrupted (Ctrl-C / SIGINT) |
