Manpages for cortex are auto-generated from the CLI argparse definitions.
cortex.1- Main command referencecortex-tui.1- TUI subcommand referencecortex-workflow.1- Workflow subcommand reference
Manpages are automatically regenerated:
- During installation -
just installor./scripts/deprecated/install.sh - Manual generation -
just generate-manpagesorpython3 scripts/generate-manpages.py - Pre-commit hook - When
claude_ctx_py/cli.pyis modified (optional)
To automatically regenerate manpages when CLI changes:
git config core.hooksPath .githooksDo NOT manually edit the .1 files - they will be overwritten.
Instead:
- Update CLI help text in
claude_ctx_py/cli.py - Modify the generator in
scripts/generate-manpages.py - Run
just generate-manpagesto regenerate
View generated manpages:
# After generation
man docs/reference/cortex.1
# After installation
man cortex- Version: Extracted from
pyproject.toml - Date: Set to generation date (YYYY-MM-DD format)