# fish

The cldkctl completion fish command generates an autocomplete script for the Fish shell. This script enables command-line autocompletion for cldkctl, allowing you to quickly complete commands and flags by pressing the Tab key. The setup can be loaded temporarily for the current session or permanently for all new shell sessions.

## Usage

```
cldkctl completion fish [flags]
```

## Steps

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

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

```
cldkctl completion fish | source
```

This command will activate the autocompletion immediately but only until the current terminal session ends.

2. To enable autocompletion permanently for every new session, execute the command below once:

```
cldkctl completion fish > ~/.config/fish/completions/cldkctl.fish
```

This will create a completion file in your Fish configuration directory so that autocompletion is automatically available in all future sessions.

3. After setting up the file, restart your terminal or open a new shell session for the changes to take effect.
4. Once configured, you can type any cldkctl command and press Tab to auto-complete available commands, subcommands, or 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 fish 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/fish.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.
