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