Skip to content

Commands

All governance commands are read-only except init (writes expgov.config.ts).

CommandDescription
expgovShow help (default)
expgov help [cmd]Help for a command or global options
initScaffold expgov.config.ts
inventoryBarrel snapshot — flat count, tiers, namespaces
diffCompare export surfaces between refs
validateGovernance checks (exit 0/1)
doctorSetup hygiene — config paths, cache gitignore
suggestDry-run tier allowlist hints
trendExport counts across release tags
timelineGit log of barrel edits
graphExport surface graph and analytics

Shared options

All commands accept flags (--json, --quiet, cache, cwd, config).

Listing commands also accept -T/--top and -F/--full. See Flags.

Choose a command

GoalStart with
First-time setupinitinventoryvalidate
See current export surfaceinventory or graph
Compare before releasediff or trend
Enforce tier rulesvalidate
Fix unclassified exportssuggest → edit config → validate
Barrel commit historytimeline
Environment checksdoctor

Narrative walkthroughs: Workflows.