Skip to content

CLI overview ​

expgov is a single binary with explicit subcommands. Configuration is TypeScript only — expgov.config.ts at the project root (or --config).

Default — help ​

bash
expgov
expgov help
expgov help timeline
expgov timeline -h

Bare expgov (no subcommand) prints root help and exits 0.

Command families ​

FamilyCommandsPurpose
SetupinitScaffold expgov.config.ts
Snapshotinventory, graphCurrent export surface
Comparediff, trend, timelineSurface change over refs or time
Enforcevalidate, suggestTier rules and allowlist hints
HygienedoctorConfig paths, cache gitignore, drift hints

Full reference: Commands.

Typical session ​

bash
expgov init
expgov inventory
expgov validate
expgov diff HEAD
expgov timeline @4w

Step-by-step recipes: Workflows.

Flags ​

TopicPage
Flags--json, --quiet, cache, cwd, config
JSON outputMachine-readable envelope
SDK@expgov/core programmatic API

Output order (human mode) ​

txt
banner → meta (ref / from·to / range) → report body → insights → tips → footer

Commands with a meta block: inventory, diff, timeline, trend, graph, validate, suggest, doctor.

Footer and banners are suppressed under --json and --silent.