TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/irchaosclub/FANGS/llms.txt
Use this file to discover all available pages before exploring further.
fangs binary is the operator console for the FANGS npm supply-chain monitor. Unlike a typical CLI that tunnels every request through an HTTP API, fangs opens the storage backend directly — the same SQLite or Postgres database the orchestrator uses — so it reflects the current state without an extra network hop. The two exceptions are fangs scan submit and fangs package add, which POST to the orchestrator’s /v1/scans endpoint because only the orchestrator can assign a run ID and dispatch the job to a runner.
Global Flags
Every subcommand inherits these flags. Place them betweenfangs and the subcommand name.
Storage backend:
sqlite or postgres.Path to the SQLite database file. Created (with parent directories) if it does not exist.
PostgreSQL connection string. Also read from the
$FANGS_PG_DSN environment variable. Required when -storage postgres is set.Emit JSON instead of a human-readable table. Applies to every subcommand. Useful for scripting and piping output to
jq.Subcommand Reference
package
Add packages to the watcher, list all known packages or just the watched set, and remove packages from monitoring.
scan
Queue a one-off sandbox scan for a specific
package@version without waiting for the autonomous watcher.run
List recent sandbox runs with state and baseline status, or inspect the full metadata and deviations for a single run.
deviation
List and inspect behavioral deviations — the findings FANGS produces when a run differs from the package baseline.
All Subcommands
Storage Connection
The CLI connects directly to the same database the orchestrator writes to. On a single-host install, the defaults (-storage sqlite, -sqlite-path var/lib/fangs/fangs.db) work without any extra flags. For a Postgres-backed deployment, either pass -storage postgres -postgres-dsn <DSN> or export FANGS_PG_DSN before running any fangs command.
JSON Output
Pass-json to any subcommand to receive machine-readable output. The flag is global and can precede any subcommand.
Quick-Start Examples
fangs scan submit and fangs package add are the only subcommands that make HTTP calls — they POST to the orchestrator’s /v1/scans endpoint (default: http://127.0.0.1:8443). All other subcommands query the database directly and work even when the orchestrator is not running.