CLI Reference

Command-line interface for ZeroShot.

Installation

# Install with pip
pip install zeroshot-sdk

Commands

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/chat

Status

zeroshot status scan_abc123

List Scans

zeroshot list --limit 10

Configure

# Set API key
zeroshot config set api_key zsk_live_...

# View config
zeroshot config show

On this page