ReferenceCLI

CLI: setup and bootstrap

These commands create or refresh configuration. Run dry-runs first when a command supports them, especially inside an existing repository.

CommandWritesPurpose
codifix wizardYesInteractive global or project setup.
codifix initYesNon-interactive repo-local bootstrap.
codifix demoYesLoad a disposable example project to try queries immediately.
codifix tourNoWalk through the core setup, query, and resume workflow.
codifix upgradeYesRefresh generated repo-local Codifix skill and instruction files.
codifix completionNoPrint shell completion scripts.
codifix devMixedScaffold or inspect the dev-profile overlay used by contributors.

codifix wizard

Use the wizard for first setup and for safe repo-local refreshes.

codifix wizard --global
cd /path/to/project
codifix wizard --project my-project --dry-run
codifix wizard

The global wizard stores machine-level settings such as the database URL, API token, and provider configuration. The project wizard writes a user-local project config plus repo-local .codifix/ and .agents/ files so agents can discover the project slug, Codifix rules, and skills.

codifix init

Use init when you want a scriptable project bootstrap instead of the interactive wizard.

codifix init
codifix init --project my-project --dry-run
codifix init --project my-project
codifix init --force

Prefer wizard for humans and init for repeatable repository setup. Both should be reviewed before committing generated files.

codifix demo and codifix tour

Use the demo when you want data to explore without first capturing your own work. Use the tour when you want a short, guided explanation of the core commands.

codifix demo
codifix tour

The demo is a reproducible learning path, not a replacement for initializing the repository where you will actually work.

codifix upgrade

Use upgrade after installing a newer Codifix version, especially when .agents/ skills or generated instructions changed.

codifix upgrade --dry-run
codifix upgrade --dry-run --json
codifix upgrade

Real upgrade runs download the current Memory skill bundle from GitHub when possible and fall back to the installed skill-template when offline. Review generated diffs before committing. This command is expected to touch repo-local integration files, not the PostgreSQL database.

codifix completion

Generate shell completion for interactive use.

codifix completion bash
codifix completion zsh
codifix completion fish

Install the generated script according to your shell’s completion path.

codifix dev

The dev command is for contributors running Codifix from source. Use it to inspect or scaffold the dev-profile overlay instead of editing installed-user config.

codifix dev --help
codifix dev --copy-from-global
codifix dev --dry-run
CODIFIX_PROFILE=dev cargo run --bin codifix -- doctor

The dev profile keeps source-tree experimentation separate from the packaged service. Cargo-run dev defaults use 127.0.0.1:4250 for HTTP and the /ws WebSocket stream. The Cap'n Proto endpoints used before v2 no longer exist.

© 2026 Olivier Van Acker (3vilM33pl3). Codifix is AGPL-3.0-or-later with commercial licensing available.