CLI reference
Stable command contracts, automation rules, and schema discovery.
genesis command surface
Rules for automation
- Use
--json; expect exactly one JSON object on stdout. - Treat exit codes as stable categories, not generic success/failure.
- Use
--engine selfhoston routed frontend commands. - Pin the selfhost artifact identity in production paths.
- Retrieve recursive command/option definitions from
genesis cli-schema. - Never scrape human help when a JSON contract exists.
Machine discovery
./target/debug/genesis cli-schema --json
./target/debug/genesis agent-index --help
./target/debug/genesis agent-plan --helpCommand families
Stable routed families
fmt, eval, explain, debug/*, run, replay, optimize, typecheck, test, apply-patch, semantic-edit, pack, verify, selfhost-artifact, selfhost-dashboard, cli-schema, agent-index, agent-plan, bench, keygen, sign, transparency-verify, store/*, refs/*, commit/*, pkg/* (gcpm/* alias), policy/*, sync/*, gc/*, vcs/*
Command forms explicitly frozen in the CLI specification
genesisgenesis agent-indexgenesis agent-plan --intent <agent-intent.json|-> --caps <caps.toml> [--max-workflows <n>]genesis bench <inspect|run|validate-run|score|replay|bundle|submit>genesis cli-schemagenesis commit show <commit-hash>genesis debug bisect --baseline <timeline.gc> --candidate <timeline.gc>genesis eval <file> [--engine rust|selfhost] [--stage1-pipeline] [--stage1-gate] [--stage2-gate]genesis explain <file> --contract <expr-or-symbol> --msg <coreform> [--engine rust|selfhost]genesis fmt --check <file>genesis fmt <file> [--check] [--engine rust|selfhost]genesis gcpmgenesis gcpm --jsongenesis gcpm abi --pkg <package.toml>genesis gcpm add <name>@<selector>genesis gcpm add|remove|lock|update|run|build|install|verify|doctor|env|publish|bridge|self-optimize --jsongenesis gcpm doctor --caps <caps.toml> [--lock genesis.lock]genesis gcpm env --profile <dev|ci|release> [--runtime-backend <headless|gpu|gfx|backend|profile-*>] [--hydrate]genesis gcpm migrate --pkg package.tomlgenesis gcpm newgenesis gcpm remove <dep>genesis gcpm run <task>genesis gcpm self-optimize --pkg <package.toml> [--dry-run]genesis gcpm test --pkg <package.toml>genesis gcpm update [--only <dep> ...]genesis keygen --out <key.toml>genesis optimize <file> [--engine rust|selfhost]genesis pkggenesis replay <file> --log <log.gclog> [--store <dir>] [--engine rust|selfhost]genesis run <file> --caps <policy.toml> [--log <out.gclog>] [--engine rust|selfhost]genesis selfhost-artifact --out <file> [--min-stage2-supported-modules <N>] [--min-stage2-validated-modules <N>]genesis selfhost-dashboardgenesis selfhost-dashboard [--markdown <file>] [--store <dir>]genesis semantic-edit index --pkg <package.toml> --module-path <path>genesis semantic-edit workspace-graph --pkg <package.toml>genesis sign --pkg <package.toml> --key <key.toml> [--acceptance <hex>] [--signatures <file>]genesis transparency-verify --pkg <package.toml>genesis vcs hash --in <file> [--engine rust|selfhost]genesis verify --pkg <package.toml> [--policy <policy.toml>] [--signatures <file>]