Repository navigation
v0.6.2
cfgit 0.6.2
Try cfgit in one command, with no database, Docker or config to set up first:
uvx --python 3.12 --from 'cfgit[demo]' cfg democfg demo starts a throwaway Postgres, seeds a few sample config records (two agent configs and a feature flag) and plays the core story with real commands:
- a tracked change;
- someone edits a record straight in the database;
- cfgit refuses the next write and explains the fix;
diff, thenadopt;restore --discard-driftthrows away an unreviewed flag flip;log, thenrestore @1.
It takes about 6 seconds.
- No Docker needed: Postgres comes embedded via the new
demoextra. Where that build is missing (Linux ARM, Python 3.13+), it uses apostgres:16-alpineDocker container instead. - Isolated: it runs in a temp directory, never touches your own
.cfg.tomlorCFG_*settings, and cleans up when it ends, including on Ctrl-C. - Options:
--stepwaits for Enter between steps;--fastdrops the pauses.--keepleaves the database running and prints the MCP server config, so you can hand it to an agent and watch the same refusal happen there.cfg demo --stopshuts it down.
The --python 3.12 pin is there because the embedded Postgres package ships builds up to Python 3.12. uv downloads that Python for you.
PR: #83.