Page cover

powershell

The cldkctl completion powershell command generates an autocomplete script for PowerShell. This feature allows PowerShell users to auto-complete cldkctl commands and flags, improving typing speed and accuracy. You can load the autocompletion script temporarily for the current session or permanently by adding it to your PowerShell profile.

Usage

cldkctl completion powershell [flags]

Steps

Follow the steps below to run and view the result of this command:

  1. To enable autocompletion temporarily for your current PowerShell session, run the following command:

cldkctl completion powershell | Out-String | Invoke-Expression

This will activate the autocomplete feature immediately, but it will only last until you close the current PowerShell window.

  1. To enable autocompletion permanently for all future sessions, add the output of the command above to your PowerShell profile file.This ensures that the autocompletion script loads automatically every time PowerShell starts.

  2. After adding the script to your PowerShell profile, restart PowerShell for the setup to take effect.Once configured, you can start typing any cldkctl command and press Tab to see available subcommands and flags.

Flags

This command supports global flags. Refer to the Global Flags section for details

Flag
Description

-h, --help

Help for the powershell subcommand.

--help

Disable completion descriptions.

Last updated