From 20db6f998601510e30bf5cd4055ed1582153ff3c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 19 Nov 2025 17:49:30 +0000 Subject: [PATCH 1/2] Initial plan From 54f55a55e96a631538afed986cf47abf521e0a6d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 19 Nov 2025 17:53:29 +0000 Subject: [PATCH 2/2] Fix .NET 10 CLI auto completion command from 'generate' to 'script' Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com> --- docs/core/tools/enable-tab-autocomplete.md | 14 +++++++------- docs/core/whats-new/dotnet-10/sdk.md | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/core/tools/enable-tab-autocomplete.md b/docs/core/tools/enable-tab-autocomplete.md index 5ea6ce26c1f26..5ae6e350908a9 100644 --- a/docs/core/tools/enable-tab-autocomplete.md +++ b/docs/core/tools/enable-tab-autocomplete.md @@ -20,10 +20,10 @@ Starting with .NET 10, the .NET CLI includes native shell completion scripts tha ### Generate completion scripts -Use the `dotnet completions generate` command to generate a completion script for your shell: +Use the `dotnet completions script` command to generate a completion script for your shell: ```console -dotnet completions generate [SHELL] +dotnet completions script [SHELL] ``` The `[SHELL]` parameter accepts one of the following values: @@ -62,7 +62,7 @@ Add the appropriate command to your shell's profile to enable native completions Add the following line to your PowerShell profile (`$PROFILE`): ```powershell -dotnet completions generate pwsh | Out-String | Invoke-Expression +dotnet completions script pwsh | Out-String | Invoke-Expression ``` #### Bash @@ -70,7 +70,7 @@ dotnet completions generate pwsh | Out-String | Invoke-Expression Add the following line to your `.bashrc` file: ```bash -eval "$(dotnet completions generate bash)" +eval "$(dotnet completions script bash)" ``` #### Zsh @@ -78,7 +78,7 @@ eval "$(dotnet completions generate bash)" Add the following line to your `.zshrc` file: ```zsh -eval "$(dotnet completions generate zsh)" +eval "$(dotnet completions script zsh)" ``` #### Fish @@ -86,7 +86,7 @@ eval "$(dotnet completions generate zsh)" Add the following line to your `config.fish` file: ```fish -dotnet completions generate fish | source +dotnet completions script fish | source ``` #### Nushell @@ -94,7 +94,7 @@ dotnet completions generate fish | source Add the following to the beginning of your `config.nu` file: ```nu -dotnet completions generate nushell | save -f ~/.local/share/nushell/completions/dotnet.nu +dotnet completions script nushell | save -f ~/.local/share/nushell/completions/dotnet.nu use ~/.local/share/nushell/completions/dotnet.nu * ``` diff --git a/docs/core/whats-new/dotnet-10/sdk.md b/docs/core/whats-new/dotnet-10/sdk.md index 4c7acfff1c9da..4dab76b974366 100644 --- a/docs/core/whats-new/dotnet-10/sdk.md +++ b/docs/core/whats-new/dotnet-10/sdk.md @@ -251,10 +251,10 @@ The `--interactive` flag is now enabled by default for CLI commands in interacti ## Native shell tab-completion scripts -The `dotnet` CLI now supports generating native tab-completion scripts for popular shells using the `dotnet completions generate [SHELL]` command. Supported shells include `bash`, `fish`, `nushell`, `powershell`, and `zsh`. These scripts improve usability by providing faster and more integrated tab-completion features. For example, in PowerShell, you can enable completions by adding the following to your `$PROFILE`: +The `dotnet` CLI now supports generating native tab-completion scripts for popular shells using the `dotnet completions script [SHELL]` command. Supported shells include `bash`, `fish`, `nushell`, `powershell`, and `zsh`. These scripts improve usability by providing faster and more integrated tab-completion features. For example, in PowerShell, you can enable completions by adding the following to your `$PROFILE`: ```powershell -dotnet completions script pwsh | out-String | Invoke-Expression -ErrorAction SilentlyContinue +dotnet completions script pwsh | Out-String | Invoke-Expression ``` ## Console apps can natively create container images