Skip to content

Flags

All governance commands accept these flags. Per-command flags (-v, -f, -nch) are documented on each command page.

FlagRole
-j, --jsonMachine-readable JSON envelope on stdout
-q, --quietSuppress info logs and tips; keep primary report
-s, --silentSuppress human output except errors and --json
-C, --cwdProject root
-c, --configPath to expgov.config.ts
-pn, --package-nameOverride package name
-cd, --cache-dirOverride cache directory
-ncl, --no-colorPlain output (NO_COLOR env, non-TTY also disable color)
-nlg, --no-log-prefixOmit [expgov] log prefix
-nlc, --no-log-channelOmit info/warn/tip channel tags
-y, --yesNon-interactive init

List flags

Applies to inventory, diff, graph, trend, timeline, validate, suggest, doctor:

FlagRole
-T, --top <n>Cap list rows (default 10, min 1)
-F, --fullNo truncation

Cache (working tree)

Snapshots for uncommitted state live under .expgov/cache/__worktree__/. expgov tracks barrels, re-export chains, config, and scanned modules in files.json.

ModeBehavior
DefaultCorrect freshness; cache: hit in JSON when reused
-f/--forceRebuild this run (still writes unless --no-cache)
-nch/--no-cacheBypass read and write (debug/CI)

Commit/SHA refs use immutable per-SHA cache dirs.

Insights

Several commands append an Insights block before the footer — largest module, diff deltas, trend jumps, validate hot spots, etc. Available as data.insights in --json. Suppressed under --silent.

Commands with insights: inventory, validate (failure or -v), diff, trend, graph, timeline.