CLI Reference
The AIPTx CLI provides full control over your penetration testing workflow from the command line.Installation
- npm
- pip
- brew
- Docker
Authentication
Login
Using API Key
Check Auth Status
Scanning Commands
aiptx scan
Start a new penetration test scan.| Argument | Description |
|---|---|
target | URL, IP address, or domain to scan |
| Option | Description | Default |
|---|---|---|
--mode | Scan mode: quick, standard, deep | standard |
--type | Scan type: web, api, network, full | web |
--openapi | Path to OpenAPI/Swagger specification | - |
--auth-type | Authentication type: bearer, basic, cookie, custom | - |
--auth-token | Authentication token or credentials | - |
--headers | Custom headers (JSON format) | - |
--exclude | Endpoints to exclude (comma-separated) | - |
--output | Output format: json, table, quiet | table |
--wait | Wait for scan to complete | true |
aiptx scan list
List all scans in your account.| Option | Description | Default |
|---|---|---|
--status | Filter by status: running, completed, failed | - |
--limit | Number of results | 20 |
--format | Output format: json, table | table |
aiptx scan status
Check the status of a running scan.aiptx scan cancel
Cancel a running scan.Findings Commands
aiptx findings list
List findings from a scan.| Option | Description | Default |
|---|---|---|
--severity | Filter by severity: critical, high, medium, low | - |
--status | Filter by status: open, fixed, accepted | - |
--format | Output format: json, table | table |
aiptx findings get
Get detailed information about a specific finding.aiptx findings export
Export findings to a file.Report Commands
aiptx report generate
Generate a penetration test report.| Option | Description | Default |
|---|---|---|
--format | Report format: pdf, html, json, csv | pdf |
--template | Report template: executive, technical, compliance | technical |
--compliance | Compliance framework: soc2, iso27001, pci, hipaa | - |
--output | Output file path | ./report.pdf |
Configuration Commands
aiptx config set
Set a configuration value.| Key | Description | Default |
|---|---|---|
default_mode | Default scan mode | standard |
output_format | Default output format | table |
auto_report | Generate report after scan | false |
notifications | Enable notifications | true |
aiptx config get
Get a configuration value.aiptx config list
List all configuration values.Global Options
These options are available for all commands:| Option | Description |
|---|---|
--help, -h | Show help for a command |
--version, -v | Show CLI version |
--verbose | Enable verbose output |
--quiet, -q | Suppress non-essential output |
--no-color | Disable colored output |
Exit Codes
| Code | Description |
|---|---|
0 | Success |
1 | General error |
2 | Invalid arguments |
3 | Authentication error |
4 | Network error |
5 | Scan failed |