> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-completion/powershell.md).

# 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.

2. 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.
3. 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

{% hint style="info" %}
This command supports global flags. Refer to the Global Flags section for details
{% endhint %}

| Flag       | Description                         |
| ---------- | ----------------------------------- |
| -h, --help | Help for the powershell subcommand. |
| --help     | Disable completion descriptions.    |
