Skip to content

Commit 0fcecca

Browse files
hubwriterCopilotjc-clark
authored
Copilot CLI command reference: add missing commands and useful links (#60723)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com>
1 parent 1f887fe commit 0fcecca

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

content/copilot/reference/copilot-cli-reference/cli-command-reference.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,49 +75,53 @@ docsTeamMetrics:
7575
| Command | Purpose |
7676
|-----------------------------------------------------|---------|
7777
| `/add-dir PATH` | Add a directory to the allowed list for file access. |
78-
| `/agent` | Browse and select from available agents (if any). |
78+
| `/agent` | Browse and select from available agents (if any). See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/about-custom-agents). |
7979
| `/allow-all`, `/yolo` | Enable all permissions (tools, paths, and URLs). |
8080
| `/changelog [SUMMARIZE] [VERSION]` | Display the CLI changelog with an optional AI-generated summary. |
8181
| `/clear [PROMPT]`, `/new [PROMPT]` | Start a new conversation. |
82-
| `/compact` | Summarize the conversation history to reduce context window usage. |
83-
| `/context` | Show the context window token usage and visualization. |
82+
| `/compact` | Summarize the conversation history to reduce context window usage. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/context-management#compaction). |
83+
| `/context` | Show the context window token usage and visualization. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/context-management#checking-your-context-usage). |
8484
| `/copy` | Copy the last response to the clipboard. |
8585
| `/cwd`, `/cd [PATH]` | Change the working directory or display the current directory. |
86-
| `/delegate [PROMPT]` | Delegate changes to a remote repository with an AI-generated pull request. |
86+
| `/delegate [PROMPT]` | Delegate changes to a remote repository with an AI-generated pull request. See [AUTOTITLE](/copilot/how-tos/copilot-cli/use-copilot-cli-agents/delegate-tasks-to-cca). |
8787
| `/diff` | Review the changes made in the current directory. |
8888
| `/exit`, `/quit` | Exit the CLI. |
8989
| `/experimental [on\|off\|show]` | Toggle, set, or show experimental features. |
9090
| `/feedback` | Provide feedback about the CLI. |
9191
| `/fleet [PROMPT]` | Enable parallel subagent execution of parts of a task. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/fleet). |
9292
| `/help` | Show the help for interactive commands. |
93-
| `/ide` | Connect to an IDE workspace. |
94-
| `/init` | Initialize {% data variables.product.prodname_copilot_short %} custom instructions and agentic features for this repository. |
93+
| `/ide` | Connect to an IDE workspace. See [AUTOTITLE](/copilot/how-tos/copilot-cli/connecting-vs-code#managing-the-connection-with-the-ide-slash-command). |
94+
| `/init` | Initialize {% data variables.product.prodname_copilot_short %} custom instructions and agentic features for this repository. See [Project initialization for {% data variables.product.prodname_copilot_short %}](#project-initialization-for-copilot). |
9595
| `/instructions` | View and toggle custom instruction files. |
9696
| `/keep-alive [on\|busy\|NUMBERm\|NUMBERh]` | Prevent the machine from going to sleep: while a CLI session is active, while the agent is busy, or for a defined length of time. |
9797
| `/list-dirs` | Display all of the directories for which file access has been allowed. |
9898
| `/login` | Log in to {% data variables.product.prodname_copilot_short %}. |
9999
| `/logout` | Log out of {% data variables.product.prodname_copilot_short %}. |
100100
| `/lsp [show\|test\|reload\|help] [SERVER-NAME]` | Manage the language server configuration. |
101-
| `/mcp [show\|add\|edit\|delete\|disable\|enable\|auth\|reload] [SERVER-NAME]` | Manage the MCP server configuration. |
101+
| `/mcp [show\|add\|edit\|delete\|disable\|enable\|auth\|reload] [SERVER-NAME]` | Manage the MCP server configuration. See [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers#managing-mcp-servers). |
102102
| `/model`, `/models [MODEL]` | Select the AI model you want to use. |
103103
| `/on-air`, `/streamer-mode` | Toggle streamer mode (hides preview model names). |
104104
| `/plan [PROMPT]` | Create an implementation plan before coding. |
105-
| `/plugin [marketplace\|install\|uninstall\|update\|list] [ARGS...]` | Manage plugins and plugin marketplaces. |
105+
| `/plugin [marketplace\|install\|uninstall\|update\|list] [ARGS...]` | Manage plugins and plugin marketplaces. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/about-cli-plugins). |
106106
| `/pr [view\|create\|fix\|auto]` | Operate on pull requests for the current branch. |
107-
| `/remote` | Enable remote access to this session from {% data variables.product.prodname_dotcom_the_website %} and {% data variables.product.prodname_mobile %}. |
107+
| `/remote` | Enable remote access to this session from {% data variables.product.prodname_dotcom_the_website %} and {% data variables.product.prodname_mobile %}. See [AUTOTITLE](/copilot/how-tos/copilot-cli/steer-remotely). |
108108
| `/rename [NAME]` | Rename the current session (auto-generates a name if omitted; alias for `/session rename`). |
109+
| `/research TOPIC` | Run a deep research investigation using {% data variables.product.github %} search and web sources. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/research). |
109110
| `/reset-allowed-tools` | Reset the list of allowed tools. |
110111
| `/restart` | Restart the CLI, preserving the current session. |
111112
| `/resume [SESSION-ID]` | Switch to a different session by choosing from a list (optionally specify a session ID). |
112-
| `/review [PROMPT]` | Run the code review agent to analyze changes. |
113+
| `/review [PROMPT]` | Run the code review agent to analyze changes. See [AUTOTITLE](/copilot/how-tos/copilot-cli/use-copilot-cli-agents/agentic-code-review). |
113114
| `/session [checkpoints [n]\|files\|plan\|rename NAME]` | Show session information and a workspace summary. Use the subcommands for details. |
114115
| `/share [file\|gist] [session\|research] [PATH]` | Share the session to a Markdown file or {% data variables.product.github %} gist. |
115-
| `/skills [list\|info\|add\|remove\|reload] [ARGS...]` | Manage skills for enhanced capabilities. |
116+
| `/skills [list\|info\|add\|remove\|reload] [ARGS...]` | Manage skills for enhanced capabilities. See [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/create-skills). |
117+
| `/tasks` | View and manage background tasks (subagents and shell sessions). |
116118
| `/terminal-setup` | Configure the terminal for multiline input support (<kbd>Shift</kbd>+<kbd>Enter</kbd> and <kbd>Ctrl</kbd>+<kbd>Enter</kbd>). |
117119
| `/theme [show\|set\|list] [auto\|THEME-ID]` | View or configure the terminal theme. |
118-
| `/usage` | Display session usage metrics and statistics. |
119120
| `/undo`, `/rewind` | Rewind the last turn and revert file changes. |
121+
| `/update` | Update the CLI to the latest version. |
122+
| `/usage` | Display session usage metrics and statistics. |
120123
| `/user [show\|list\|switch]` | Manage the current {% data variables.product.github %} user. |
124+
| `/version` | Display version information and check for updates. |
121125

122126
For a complete list of available slash commands enter `/help` in the CLI's interactive interface.
123127

@@ -129,16 +133,16 @@ For a complete list of available slash commands enter `/help` in the CLI's inter
129133
| `--add-dir=PATH` | Add a directory to the allowed list for file access (can be used multiple times). |
130134
| `--add-github-mcp-tool=TOOL` | Add a tool to enable for the {% data variables.product.github %} MCP server, instead of the default CLI subset (can be used multiple times). Use `*` for all tools. |
131135
| `--add-github-mcp-toolset=TOOLSET` | Add a toolset to enable for the {% data variables.product.github %} MCP server, instead of the default CLI subset (can be used multiple times). Use `all` for all toolsets. |
132-
| `--additional-mcp-config=JSON` | Add an MCP server for this session only. The server configuration can be supplied as a JSON string or a file path (prefix with `@`). Augments the configuration from `~/.copilot/mcp-config.json`. Overrides any installed MCP server configuration with the same name. |
133-
| `--agent=AGENT` | Specify a {% data variables.copilot.copilot_custom_agent_short %} to use. |
136+
| `--additional-mcp-config=JSON` | Add an MCP server for this session only. The server configuration can be supplied as a JSON string or a file path (prefix with `@`). Augments the configuration from `~/.copilot/mcp-config.json`. Overrides any installed MCP server configuration with the same name. See [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers). |
137+
| `--agent=AGENT` | Specify a {% data variables.copilot.copilot_custom_agent_short %} to use. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/about-custom-agents). |
134138
| `--allow-all` | Enable all permissions (equivalent to `--allow-all-tools --allow-all-paths --allow-all-urls`). |
135139
| `--allow-all-paths` | Disable file path verification and allow access to any path. |
136140
| `--allow-all-tools` | Allow all tools to run automatically without confirmation. Required when using the CLI programmatically (env: `COPILOT_ALLOW_ALL`). |
137141
| `--allow-all-urls` | Allow access to all URLs without confirmation. |
138-
| `--allow-tool=TOOL ...` | Tools the CLI has permission to use. Will not prompt for permission. For multiple tools, use a quoted, comma-separated list. |
142+
| `--allow-tool=TOOL ...` | Tools the CLI has permission to use. Will not prompt for permission. For multiple tools, use a quoted, comma-separated list. See [AUTOTITLE](/copilot/how-tos/copilot-cli/allowing-tools#allowing-or-denying-permission-for-specific-tools). |
139143
| `--allow-url=URL ...` | Allow access to specific URLs or domains. For multiple URLs, use a quoted, comma-separated list. |
140144
| `--autopilot` | Enable autopilot continuation in prompt mode. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/autopilot). |
141-
| `--available-tools=TOOL ...` | Only these tools will be available to the model. For multiple tools, use a quoted, comma-separated list. |
145+
| `--available-tools=TOOL ...` | Only these tools will be available to the model. For multiple tools, use a quoted, comma-separated list. See [AUTOTITLE](/copilot/how-tos/copilot-cli/allowing-tools). |
142146
| `--banner` | Show the startup banner. |
143147
| `--bash-env` | Enable `BASH_ENV` support for bash shells. |
144148
| `--config-dir=PATH` | Set the configuration directory (default: `~/.copilot`). |
@@ -159,6 +163,7 @@ For a complete list of available slash commands enter `/help` in the CLI's inter
159163
| `--log-dir=DIRECTORY` | Set the log file directory (default: `~/.copilot/logs/`). |
160164
| `--log-level=LEVEL` | Set the log level (choices: `none`, `error`, `warning`, `info`, `debug`, `all`, `default`). |
161165
| `--max-autopilot-continues=COUNT` | Maximum number of continuation messages in autopilot mode (default: unlimited). See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/autopilot). |
166+
| `--mode=MODE` | Set the initial agent mode (choices: `interactive`, `plan`, `autopilot`). Cannot be combined with `--autopilot` or `--plan`. |
162167
| `--model=MODEL` | Set the AI model you want to use. |
163168
| `--mouse[=VALUE]` | Enable mouse support in alt screen mode. VALUE can be `on` (default) or `off`. When enabled, the CLI captures mouse events in alt screen mode—scroll wheel, clicks, etc. When disabled, the terminal's native mouse behavior is preserved. Once set the setting is persisted by being written to your configuration file.|
164169
| `--no-ask-user` | Disable the `ask_user` tool (the agent works autonomously without asking questions). |
@@ -170,10 +175,11 @@ For a complete list of available slash commands enter `/help` in the CLI's inter
170175
| `--no-mouse` | Disable mouse support. |
171176
| `--no-remote` | Disable remote access for this session. |
172177
| `--output-format=FORMAT` | FORMAT can be `text` (default) or `json` (outputs JSONL: one JSON object per line). |
173-
| `-p PROMPT`, `--prompt=PROMPT` | Execute a prompt programmatically (exits after completion). |
178+
| `-p PROMPT`, `--prompt=PROMPT` | Execute a prompt programmatically (exits after completion). See [AUTOTITLE](/copilot/how-tos/copilot-cli/automate-copilot-cli/run-cli-programmatically). |
179+
| `--plan` | Start in plan mode. Shorthand for `--mode plan`. Cannot be combined with `--mode` or `--autopilot`. |
174180
| `--plain-diff` | Disable rich diff rendering (syntax highlighting via the diff tool specified by your git config). |
175181
| `--plugin-dir=DIRECTORY` | Load a plugin from a local directory (can be used multiple times). |
176-
| `--remote` | Enable remote access to this session from {% data variables.product.prodname_dotcom_the_website %} and {% data variables.product.prodname_mobile %}. |
182+
| `--remote` | Enable remote access to this session from {% data variables.product.prodname_dotcom_the_website %} and {% data variables.product.prodname_mobile %}. See [AUTOTITLE](/copilot/how-tos/copilot-cli/steer-remotely). |
177183
| `--resume=SESSION-ID` | Resume a previous interactive session by choosing from a list (optionally specify a session ID). |
178184
| `-s`, `--silent` | Output only the agent response (without usage statistics), useful for scripting with `-p`. |
179185
| `--screen-reader` | Enable screen reader optimizations. |

0 commit comments

Comments
 (0)