Skip to content

CLI Reference

gnosis URL [OPTIONS]
Flag Description
-a, --all Crawl all child pages under the URL path
-n, --dry-run Discover and count pages only (requires --all)
-o, --output DIR Output directory (default ./)
-c, --config FILE YAML configuration file
-f, --overwrite Overwrite existing files
-q, --quiet / -v, --verbose Suppress / show diagnostics
--no-frontmatter Write bare markdown (no provenance)
--frontmatter KEY: VALUE Extra constant frontmatter field (repeatable)
--header NAME: VALUE Extra request header (repeatable)
--bearer-token-env VAR Bearer token from environment variable
--basic-user USER HTTP Basic username (requires --basic-token-env)
--basic-token-env VAR HTTP Basic password/token from environment variable
--allow-private-network Bypass the SSRF guard (opt-in)
--warc Archive raw bytes to WARC + content-addressed store
--render Render pages with the configured JS renderer
--chunk Write per-chunk citation manifests (.chunks.json)
--sitemap Treat URL as a sitemap.xml and list its page URLs
--qmd-index Index output into QMD (requires [qmd] extra)
--sign Cryptographically sign the output (Ed25519 seal of origin)
--sign-key FILE Ed25519 private key (PEM) for --sign (default $GNOSIS_SIGNING_KEY)
--format json\|jsonl\|parquet Also export documents (with provenance)
--profile NAME Compliance policy preset: strict-optout / open-only

Also available: gnosis-bench (reproducible scorecard), gnosis-doc (document → Markdown), gnosis-keygen (generate a signing keypair), gnosis-verify (verify a signed document — pass --public-key to pin the producer identity), and gnosis-mcp (MCP server; ships with the core install).

Configuration

Copy gnosis/config/default.yaml and pass it with -c. Sections:

  • downloader — timeout, retries, user agent, rate limit, robots, SSRF, headers, auth
  • crawler — max depth, max pages, concurrency
  • converter — excluded tags, content selectors, boilerplate stripping
  • output — directory, overwrite, frontmatter, WARC, chunk
  • render — enabled, auto, engine, timeout
  • policies — ordered allow/deny rules (deny overrides allow)
  • plugins — Python hook files (pre_fetch / post_fetch / post_process)