> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flex.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# completion

> Generate shell autocompletion scripts for the FlexAI CLI

Generate the autocompletion scripts for the flexai CLI for the specified shell.

## Usage

```bash theme={null}
flexai completion [shell_name]
```

## Supported Shells

* [`flexai completion bash`](/cli/reference/completion/bash)
* [`flexai completion fish`](/cli/reference/completion/fish)
* [`flexai completion powershell`](/cli/reference/completion/powershell)
* [`flexai completion zsh`](/cli/reference/completion/zsh)

## Usage

1. Identify your shell:

   ```bash theme={null}
   echo $0
   ```

2. Follow the instructions for your shell by visiting the corresponding command's documentation page to enable autocompletion.

Alternatively, you can follow Cobra's [official documentation](https://cobra.dev/docs/how-to-guides/shell-completion/) for more detailed instructions on setting up shell completions.
