Skip to main content
These flags apply to every geogen subcommand. They must appear before the subcommand (e.g. geogen --json entities list, not geogen entities list --json).

--json

The default output is a formatted table optimized for humans. Pass --json for clean structured output:
This is the recommended mode for scripts and CI jobs. Table rendering may evolve between minor versions, but JSON output mirrors the underlying /v1 API and is stable.

--api-key and --base-url

These exist for two cases:
  1. Multi-workspace scripts: pass a different key per call without juggling env vars.
  2. Staging or self-hosted backends: point at a non-production base URL.
See Authentication for the full resolution order.

Exit codes

Standard output is reserved for command results; status, info, and error messages go to stderr. That means geogen --json entities list > entities.json produces a clean JSON file even if status messages would otherwise be printed.