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
Copy file name to clipboardExpand all lines: content/copilot/reference/copilot-cli-reference/cli-command-reference.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -317,6 +317,7 @@ Settings cascade from user to repository to local, with more specific scopes ove
317
317
|`compactPaste`|`boolean`|`true`| Collapse large pastes into compact tokens. |
318
318
|`custom_agents.default_local_only`|`boolean`|`false`| Only use local custom agents. |
319
319
|`denied_urls`|`string[]`|`[]`| URLs or domains blocked (takes precedence over `allowed_urls`). |
320
+
|`enabledFeatureFlags`|`object`| — | Enable or disable individual feature flags. Keys are flag names; values are `true` (enable) or `false` (explicitly disable). Takes precedence over the legacy `feature_flags.enabled` array format. See [Feature flag reference](#feature-flag-reference). |
|`includeCoAuthoredBy`|`boolean`|`true`| Add a `Co-authored-by` trailer to git commits made by the agent. |
322
323
|`companyAnnouncements`|`string[]`|`[]`| Custom messages shown randomly on startup. |
@@ -969,6 +970,26 @@ MCP servers are loaded from multiple sources, each with a different trust level.
969
970
970
971
All MCP tool invocations require explicit permission. This applies even to read-only operations on external services.
971
972
973
+
### Migrating from `.vscode/mcp.json`
974
+
975
+
If your project uses `.vscode/mcp.json` (VS Code's MCP configuration format), migrate to `.mcp.json` for {% data variables.copilot.copilot_cli %}. The migration remaps the `servers` key to `mcpServers`.
On Windows, replace `pwsh` with `powershell` if you are using Windows PowerShell instead of PowerShell Core.
992
+
972
993
## Skills reference
973
994
974
995
Skills are Markdown files that extend what the CLI can do. Each skill lives in its own directory containing a `SKILL.md` file. When invoked (via `/SKILL-NAME` or automatically by the agent), the skill's content is injected into the conversation.
@@ -1239,7 +1260,23 @@ When content capture is enabled, the following attributes are populated.
1239
1260
1240
1261
## Feature flag reference
1241
1262
1242
-
Feature flags enable functionality that is not yet generally available. Enable flags via the `COPILOT_CLI_ENABLED_FEATURE_FLAGS` environment variable (comma-separated list) or by using the `/experimental` slash command.
1263
+
Feature flags enable functionality that is not yet generally available. You can enable or disable individual flags in three ways:
1264
+
1265
+
***Environment variable**: Set `COPILOT_CLI_ENABLED_FEATURE_FLAGS` to a comma-separated list of flag names (for example, `"SOME_FEATURE,SOME_OTHER_FEATURE"`).
1266
+
***Slash command**: Use `/experimental on` in an interactive session to enable all experimental-tier flags.
1267
+
***Configuration file**: Add an `enabledFeatureFlags` object to `~/.copilot/config.json`. Set a flag to `true` to enable it or `false` to explicitly disable a flag that would otherwise be enabled by your tier.
1268
+
1269
+
```json
1270
+
{
1271
+
"enabledFeatureFlags": {
1272
+
"SOME_FEATURE": true,
1273
+
"SOME_OTHER_FEATURE": false
1274
+
}
1275
+
}
1276
+
```
1277
+
1278
+
> [!NOTE]
1279
+
> The legacy `feature_flags.enabled` array format is still supported as a fallback, but `enabledFeatureFlags` takes precedence when both are present.
0 commit comments