Commands Reference
Core Commands
claudux update
Generate or update documentation by analyzing your codebase.
claudux updateWith focused directive:
claudux update -m "Add API documentation for new endpoints"
claudux update --with "Focus on the authentication module"Process:
- Loads project configuration and selects a project profile
- Validates
docs-structure.jsonwhen present and builds the static index - Invokes the selected backend once
- Enforces the default source boundary or applies the manifest patch batch
- Validates local routes, Markdown links, assets, and anchors
- Refreshes deterministic state only after the successful path completes
Options:
claudux update -m "message" # Focused directive
claudux update --with "message" # Same as -m
claudux update --strict # Re-prompt (then error) on broken internal linksclaudux serve
Start the VitePress development server to preview documentation locally.
claudux serve- Opens at
http://localhost:5173 - Hot reload when files change
- Never invokes Claude or Codex
- Creates missing VitePress support files when needed
- Runs
npm install --no-audit --no-fundwhen docs dependencies are missing
Utility Commands
claudux check
Validate your environment and dependencies.
claudux checkChecks:
- Node.js version (>=18 required)
- Active backend (Claude or Codex)
- Backend CLI installation and authentication
- Documentation directory status
For current Codex CLIs, authentication uses codex login status. The compatibility path for older CLIs may run a small codex exec probe, which can consume provider tokens even though check never generates documentation.
claudux --help
Display help information and usage examples.
claudux --help
claudux help
claudux -hclaudux --version
Show the installed claudux version.
claudux --version
claudux version
claudux -VInteractive Mode
Run claudux without arguments to access the interactive menu:
clauduxThe menu adapts based on whether documentation already exists:
First run (no docs):
- Generate docs (scan code -> markdown)
- Serve (VitePress dev server)
- Exit
Existing docs:
- Update docs (regenerate from code)
- Update (focused) (enter directive -> update)
- Serve (VitePress dev server)
- Exit
Advanced Usage
Backend Selection
Switch between AI backends using environment variables:
# Default -- uses Claude
claudux update
# Use Codex instead
CLAUDUX_BACKEND=codex claudux update
# Or export for the session
export CLAUDUX_BACKEND=codex
# Optional overrides; omit both to use the authenticated Codex default.
export CODEX_MODEL=gpt-6-astra
export CODEX_REASONING_EFFORT=xhigh
claudux updateEnvironment Variables
Control model selection and behavior:
# Force specific Claude model
FORCE_MODEL=opus claudux update
FORCE_MODEL=sonnet claudux update # Default
# Pre-set directive message
CLAUDUX_MESSAGE="Focus on API docs" claudux updateCommand Workflow
Typical development cycle:
# Initial setup
claudux update
# Make code changes
# ... edit your source files ...
# Update docs to reflect changes
claudux update
# Preview changes
claudux serve
# Focused updates for specific changes
claudux update -m "Document the new authentication flow"Exit Codes
Claudux follows standard Unix exit code conventions:
0: Success1: General error2: Incorrect usage, or an environment error the command could not evaluate124: Timeout130: Interrupted (Ctrl+C)
Use in CI/CD:
claudux update || exit 1 # Fail build if docs generation fails