> 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/bash.md).

# bash

The cldkctl completion bash command generates an autocomplete script for the bash shell. This feature allows you to quickly complete cldkctl commands and flags by pressing the Tab key, improving efficiency and reducing typing errors. It requires the bash-completion package to be installed beforehand.

## Usage

```
cldkctl completion bash
```

## Steps

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

1. Ensure that the bash-completion package is installed on your system. If it is not installed, you can install it using your operating system’s package manager.
2. To load completions for the current shell session, run the following command:

```
source <(cldkctl completion bash)
```

This will activate the autocomplete feature temporarily until the terminal session is closed.

3. To enable autocompletion permanently for every new session, execute one of the following commands based on your operating system:

* For Linux

```
cldkctl completion bash > /etc/bash_completion.d/cldkctl
```

* For MacOS

```
cldkctl completion bash > $(brew
```

```
 --prefix)/etc/bash_completion.d/cldkctl
```

4. After executing the setup command, start a new terminal session to apply the changes.
5. Once configured, you can type any cldkctl command and press Tab to automatically complete 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 bash subcommand.    |
| --help     | Disable completion descriptions. |
