CLI Commands
Main Command
Section titled “Main Command”cacdLaunches CACD. On first run, the setup wizard runs. After setup, the TUI (terminal interface) starts. If web interface is enabled, the API server runs in the background.
Subcommands
Section titled “Subcommands”cacd setup [options]Run the first-time setup wizard. Guides you through initial configuration.
Options:
| Flag | Description |
|---|---|
--no-web | Disable the web interface |
--project <path> | Add specified path as first project |
--skip-project | Don’t add any project during setup |
--force | Overwrite existing config without asking |
--port <number> | Set custom port for web interface |
cacd add [path]Add a project to CACD’s tracking list.
- Without a path: adds the current directory
- With a path: adds the specified directory
The path must be a valid Git repository.
remove
Section titled “remove”cacd remove <path>Remove a project from CACD’s list. This doesn’t delete any files - it just stops tracking the project.
cacd listShow all tracked projects with their paths.
cacd auth <command>Manage WebUI authentication.
Subcommands:
| Command | Description |
|---|---|
show | Display the WebUI access URL with token |
reset-passcode | Change your passcode |
regenerate-token | Generate a new access token (invalidates old URLs) |
Global Options
Section titled “Global Options”| Flag | Description |
|---|---|
--help | Show help text |
--version | Show version number |
--port <number> | Port for web interface (overrides config/env) |
--headless | Run API server only, no TUI (useful for development) |
--devc-up-command | Command to start devcontainer |
--devc-exec-command | Command to execute in devcontainer |
Examples
Section titled “Examples”# Launch CACDcacd
# Run first-time setupcacd setup
# Setup with custom portcacd setup --port 8080
# Add current directory as a projectcacd add
# Add a specific projectcacd add /path/to/my-project
# List all projectscacd list
# Show WebUI access URLcacd auth show
# Launch on a specific portcacd --port 8080
# Run headless (API server only)cacd --headless
# Run with devcontainer supportcacd --devc-up-command "devcontainer up --workspace-folder ." \ --devc-exec-command "devcontainer exec --workspace-folder ."- The
--devc-up-commandand--devc-exec-commandflags must be used together - Port can be set via flag, environment variable (
CACD_PORT), or config file (flag takes priority) - Headless mode is mainly for development when you want just the API server