Skip to content

CLI Commands

Shannon exposes the same commands through two entry points. Pick your entry point. The choice is remembered across the site.

Prefix every command with npx @keygraph/shannon:

Terminal window
npx @keygraph/shannon <command>
CommandDescription
setupInteractive wizard to configure AI provider credentials (npx mode).
startRun a pentest against a target. See flags below.
statusShow the status of the current run.
logs <workspace>Stream logs for a workspace.
workspacesList all workspaces.
stopStop the running scan and local infrastructure.
stop --cleanStop and clean up. Prompts for confirmation; add --yes (or -y) to skip.
uninstallRemove Shannon’s local infrastructure (npx mode). Prompts for confirmation; add --yes (or -y) to skip.
build --no-cacheRebuild the worker image (source-build mode).
versionPrint the Shannon version (also -v, --version).
helpShow usage help.

Each flag has a short and long form.

FlagArgumentDescription
-u, --urlURLTarget application URL (required). Use host.docker.internal for local apps.
-r, --repopathPath to the target’s source repository (required, mounted read-only). Absolute or relative; a bare repo name also works in source-build mode.
-c, --configpathPath to a configuration YAML file.
-o, --outputpathCopy deliverables to a custom output directory after the run.
-w, --workspacenameName the workspace, or resume an existing one by passing its name.
--pipeline-testing(none)Use minimal prompts for a fast test run.
--debug(none)Preserve the worker container after exit for log inspection.
Terminal window
# Basic pentest.
npx @keygraph/shannon start -u https://example.com -r /path/to/repo
# With a configuration file.
npx @keygraph/shannon start -u https://example.com -r /path/to/repo -c /path/to/my-config.yaml
# Custom output directory.
npx @keygraph/shannon start -u https://example.com -r /path/to/repo -o ./my-reports
# Named workspace.
npx @keygraph/shannon start -u https://example.com -r /path/to/repo -w q1-audit
# List all workspaces.
npx @keygraph/shannon workspaces
Terminal window
npx @keygraph/shannon logs <workspace>
npx @keygraph/shannon status

Open the Temporal Web UI for detailed monitoring:

Terminal window
open http://localhost:8233