Basic Commands¶
Essential APHIDS CLI commands for everyday use.
Help and Version¶
Show Help¶
Show Version¶
Online Mode (Connected to Hive)¶
Execute Runbook¶
aphids-cli \
--api-key YOUR_API_KEY \
--runbook RUNBOOK_ID \
--target-url https://example.com \
--engagement ENGAGEMENT_ID
Execute Attack Tree¶
aphids-cli \
--api-key YOUR_API_KEY \
--attack-tree TREE_ID \
--target-url https://example.com \
--engagement ENGAGEMENT_ID
With Verbose Output¶
aphids-cli \
--api-key YOUR_API_KEY \
--runbook RUNBOOK_ID \
--target-url https://example.com \
--verbose
Offline Mode (Standalone)¶
Basic Scan¶
With Verbose Output¶
With Debug Mode¶
Common Options¶
Target Specification¶
# URL target
--target-url https://example.com
# Domain target
--target-domain example.com
# IP target
--target-ip 192.168.1.1
# IP range
--target-ip 192.168.1.0/24
Output Options¶
# Custom output directory
--output-dir ./results
# Verbose output
--verbose
# Debug mode
--debug
# Keep tool output
--tool-output
Docker Options¶
# Custom Docker image
--image custom-aphids:latest
# Custom network
--network custom-network
# Static path mapping
--static-path /path/to/code
Examples¶
Example 1: Quick Web Scan¶
aphids-cli \
--api-key $API_KEY \
--runbook web-quick-scan \
--target-url https://example.com \
--engagement pentest-2024
Example 2: Network Discovery¶
aphids-cli \
--api-key $API_KEY \
--runbook network-discovery \
--target-ip 192.168.1.0/24 \
--engagement internal-audit
Example 3: Offline Scan¶
Example 4: CI/CD Integration¶
aphids-cli \
--api-key $CI_API_KEY \
--runbook ci-security-scan \
--target-url https://staging.example.com \
--engagement ci-cd-scans \
--verbose
Environment Variables¶
Set API Key¶
Set API URL¶
Exit Codes¶
0: Success1: General error2: Invalid arguments3: Authentication failed4: Scan failed5: Network error
Troubleshooting¶
Command Not Found¶
Permission Denied¶
Connection Failed¶
Related: Installation | Configuration | Integration