CLI Reference
Command-line interface for ZeroShot.
Installation
# Install with pip
pip install zeroshot-sdkCommands
Scan
# Basic scan
zeroshot scan --target https://api.example.com/chat
# With options
zeroshot scan \
--target https://api.example.com/chat \
--categories jailbreak,prompt_injection \
--max-attacks 50 \
--output results.json
# Using uv run (if not globally installed)
uv run zeroshot scan --target https://api.example.com/chatStatus
zeroshot status scan_abc123List Scans
zeroshot list --limit 10Configure
# Set API key
zeroshot config set api_key zsk_live_...
# View config
zeroshot config show