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

> Generate zsh autocompletion script for the FlexAI CLI

Generate the autocompletion script for the zsh shell.

## Usage

```bash theme={null}
flexai completion zsh [flags]
```

## Flags

| Flag                | Short | Type    | Description                     |
| ------------------- | ----- | ------- | ------------------------------- |
| `--help`            | `-h`  | boolean | Displays this help page.        |
| `--no-descriptions` |       | boolean | Disable completion descriptions |
| `--verbose`         | `-v`  | boolean | Enable verbose logging          |

## Examples

### Generate a zsh completion script

```bash theme={null}
flexai completion zsh > _flexai
```

### Create the zsh site-functions directory if it doesn't exist

```bash theme={null}
sudo mkdir -p /usr/local/share/zsh/site-functions
```

### Move the completion script to the site-functions directory

```bash theme={null}
sudo mv _flexai /usr/local/share/zsh/site-functions/
```

### Reload your zsh configuration

```bash theme={null}
source ~/.zshrc
```
