Skip to content

CLI Commands

Terminal window
cacd

Launches 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.

Terminal window
cacd setup [options]

Run the first-time setup wizard. Guides you through initial configuration.

Options:

FlagDescription
--no-webDisable the web interface
--project <path>Add specified path as first project
--skip-projectDon’t add any project during setup
--forceOverwrite existing config without asking
--port <number>Set custom port for web interface
Terminal window
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.

Terminal window
cacd remove <path>

Remove a project from CACD’s list. This doesn’t delete any files - it just stops tracking the project.

Terminal window
cacd list

Show all tracked projects with their paths.

Terminal window
cacd auth <command>

Manage WebUI authentication.

Subcommands:

CommandDescription
showDisplay the WebUI access URL with token
reset-passcodeChange your passcode
regenerate-tokenGenerate a new access token (invalidates old URLs)
FlagDescription
--helpShow help text
--versionShow version number
--port <number>Port for web interface (overrides config/env)
--headlessRun API server only, no TUI (useful for development)
--devc-up-commandCommand to start devcontainer
--devc-exec-commandCommand to execute in devcontainer
Terminal window
# Launch CACD
cacd
# Run first-time setup
cacd setup
# Setup with custom port
cacd setup --port 8080
# Add current directory as a project
cacd add
# Add a specific project
cacd add /path/to/my-project
# List all projects
cacd list
# Show WebUI access URL
cacd auth show
# Launch on a specific port
cacd --port 8080
# Run headless (API server only)
cacd --headless
# Run with devcontainer support
cacd --devc-up-command "devcontainer up --workspace-folder ." \
--devc-exec-command "devcontainer exec --workspace-folder ."
  • The --devc-up-command and --devc-exec-command flags 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