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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-completion/powershell.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
