You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`/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). |
79
79
|`/allow-all`, `/yolo`| Enable all permissions (tools, paths, and URLs). |
80
80
|`/changelog [SUMMARIZE] [VERSION]`| Display the CLI changelog with an optional AI-generated summary. |
81
81
|`/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). |
84
84
|`/copy`| Copy the last response to the clipboard. |
85
85
|`/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). |
87
87
|`/diff`| Review the changes made in the current directory. |
88
88
|`/exit`, `/quit`| Exit the CLI. |
89
89
|`/experimental [on\|off\|show]`| Toggle, set, or show experimental features. |
90
90
|`/feedback`| Provide feedback about the CLI. |
91
91
|`/fleet [PROMPT]`| Enable parallel subagent execution of parts of a task. See [AUTOTITLE](/copilot/concepts/agents/copilot-cli/fleet). |
92
92
|`/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). |
95
95
|`/instructions`| View and toggle custom instruction files. |
96
96
|`/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. |
97
97
|`/list-dirs`| Display all of the directories for which file access has been allowed. |
98
98
|`/login`| Log in to {% data variables.product.prodname_copilot_short %}. |
99
99
|`/logout`| Log out of {% data variables.product.prodname_copilot_short %}. |
100
100
|`/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). |
102
102
|`/model`, `/models [MODEL]`| Select the AI model you want to use. |
103
103
|`/on-air`, `/streamer-mode`| Toggle streamer mode (hides preview model names). |
104
104
|`/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). |
106
106
|`/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). |
108
108
|`/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). |
109
110
|`/reset-allowed-tools`| Reset the list of allowed tools. |
110
111
|`/restart`| Restart the CLI, preserving the current session. |
111
112
|`/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). |
113
114
|`/session [checkpoints [n]\|files\|plan\|rename NAME]`| Show session information and a workspace summary. Use the subcommands for details. |
114
115
|`/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). |
116
118
|`/terminal-setup`| Configure the terminal for multiline input support (<kbd>Shift</kbd>+<kbd>Enter</kbd> and <kbd>Ctrl</kbd>+<kbd>Enter</kbd>). |
117
119
|`/theme [show\|set\|list] [auto\|THEME-ID]`| View or configure the terminal theme. |
118
-
|`/usage`| Display session usage metrics and statistics. |
119
120
|`/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. |
120
123
|`/user [show\|list\|switch]`| Manage the current {% data variables.product.github %} user. |
124
+
|`/version`| Display version information and check for updates. |
121
125
122
126
For a complete list of available slash commands enter `/help` in the CLI's interactive interface.
123
127
@@ -129,16 +133,16 @@ For a complete list of available slash commands enter `/help` in the CLI's inter
129
133
|`--add-dir=PATH`| Add a directory to the allowed list for file access (can be used multiple times). |
130
134
|`--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. |
131
135
|`--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). |
134
138
|`--allow-all`| Enable all permissions (equivalent to `--allow-all-tools --allow-all-paths --allow-all-urls`). |
135
139
|`--allow-all-paths`| Disable file path verification and allow access to any path. |
136
140
|`--allow-all-tools`| Allow all tools to run automatically without confirmation. Required when using the CLI programmatically (env: `COPILOT_ALLOW_ALL`). |
137
141
|`--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). |
139
143
|`--allow-url=URL ...`| Allow access to specific URLs or domains. For multiple URLs, use a quoted, comma-separated list. |
140
144
|`--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). |
142
146
|`--banner`| Show the startup banner. |
143
147
|`--bash-env`| Enable `BASH_ENV` support for bash shells. |
144
148
|`--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
159
163
|`--log-dir=DIRECTORY`| Set the log file directory (default: `~/.copilot/logs/`). |
160
164
|`--log-level=LEVEL`| Set the log level (choices: `none`, `error`, `warning`, `info`, `debug`, `all`, `default`). |
161
165
|`--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`. |
162
167
|`--model=MODEL`| Set the AI model you want to use. |
163
168
|`--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.|
164
169
|`--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
170
175
|`--no-mouse`| Disable mouse support. |
171
176
|`--no-remote`| Disable remote access for this session. |
172
177
|`--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`. |
174
180
|`--plain-diff`| Disable rich diff rendering (syntax highlighting via the diff tool specified by your git config). |
175
181
|`--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). |
177
183
|`--resume=SESSION-ID`| Resume a previous interactive session by choosing from a list (optionally specify a session ID). |
178
184
|`-s`, `--silent`| Output only the agent response (without usage statistics), useful for scripting with `-p`. |
0 commit comments