CLI Reference
This page provides a complete reference for Command Code CLI options, slash commands and subcommands.
Customize Command Code's behavior with the following flags.
| Option | Description | Example |
|---|---|---|
cmd | Start interactive session | cmd |
cmd "message" | Start with initial message | cmd "fix login redirect" |
-r, --resume | Resume a conversation | cmd --resume |
-c, --continue | Continue the last conversation | cmd --continue |
-t, --trust | Auto-trust project (skip initial permission prompt) | cmd --trust |
-p, --print [query] | Run in non-interactive mode, output response and exit | cmd --print "explain this file" |
--dangerously-skip-permissions | Bypass all permission prompts (use with caution) | cmd --print "fix lint" --dangerously-skip-permissions |
--add-dir <directory> | Add directory to workspace context | cmd --add-dir ../shared |
--plan | Start in plan mode | cmd --plan |
--permission-mode <mode> | Set permission mode (standard, plan, auto-accept) | cmd --permission-mode plan |
--skip-onboarding | Skip taste onboarding (for automated runs) | cmd --skip-onboarding |
--ide-setup | Setup extension for editor context | cmd --ide-setup |
-v, --version | Output the version number | cmd --version |
-h, --help | Display this help message | cmd --help |
All available slash commands that can be used within Command Code sessions.
| Command | Description |
|---|---|
add-dir | Add a directory to the workspace context |
agents | Manage agent configurations |
clear | Clear the conversation history (reset, new) |
compact | Compact the conversation history |
exit | Exit the Command Code session |
feedback | Submit feedback or report issues |
help | Show available shortcuts |
ide | Install extension for editor context |
init | Initialize AGENTS.md for this project |
learn-taste | Learn taste from sessions with other coding agents (Claude Code, Cursor, etc.) |
login | Authenticate with CommandCode via browser |
logout | Remove stored authentication |
mcp | Manage MCP server connections |
memory | Manage Command Code memory |
model | Switch between Command Code models |
provider | Select AI provider (Command Code or Anthropic) |
resume | Resume a past conversation |
review | Review a pull request (optional PR number) |
rewind | Restore to a previous checkpoint (press Esc twice) |
share | Share conversation (copy link to clipboard) |
skills | Browse and open agent skills |
taste | Manage Taste learning and usage |
terminal-setup | Setup VSCode keybindings |
unshare | Stop sharing conversation |
List of all Command Code CLI subcommands and their description.
| Command | Description | Example |
|---|---|---|
cmd info | Display system information | cmd info |
cmd status | Show authentication status | cmd status |
cmd help | Display help information | cmd help |
cmd whoami | Show current user | cmd whoami |
cmd update | Update Command Code to the latest version | cmd update |
cmd feedback "message" | Share feedback or report bugs (optional title) | cmd feedback "docs typo" |
cmd taste | Manage taste learning packages | cmd taste list |
cmd learn-taste | Learn taste structure from repositories | cmd learn-taste |
cmd mcp | Manage MCP (Model Context Protocol) servers | cmd mcp list |
cmd login | Login with Command Code account | cmd login |
cmd logout | Remove stored authentication | cmd logout |
Subcommand Options
Options that can be used with specific subcommands to modify their behavior.
| Subcommand Option | Description | Example |
|---|---|---|
cmd info --verbose | Show detailed CPU and network information | cmd info --verbose |
cmd info --text | Print plain text without colors | cmd info --text |
cmd update --check-only | Check for updates without installing | cmd update --check-only |
List of all taste commands and their description.
| Command | Description | Example |
|---|---|---|
npx taste push | Push taste profile to Command Code registry | npx taste push |
npx taste pull | Pull taste profile from Command Code registry | npx taste pull |
npx taste list | List taste profiles | npx taste list |
npx taste lint | Lint taste profile | npx taste lint |
npx taste open | Open taste profile in editor | npx taste open |
npx taste help | Show taste help | npx taste help |
- Build something cool with Command Code and see your taste in action
- Join our Discord community for feedback, requests, and support.