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

# poly completion

> Reference for the `poly completion` command.

Output a shell completion script for `poly`. Supported shells are `bash`, `zsh`, and `fish`.

Examples:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
poly completion bash
poly completion zsh
poly completion fish
```

| Argument | Description |
| - | - |
| `shell` | Shell type to generate completions for. One of `bash`, `zsh`, `fish`. Required. |

Add the output to your shell configuration to enable tab completion.

> [tab] Bash
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> eval "$(poly completion bash)"
> # or: poly completion bash >> ~/.bash_completion
> ```

> [tab] Zsh
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> eval "$(poly completion zsh)"
> # or: poly completion zsh > ~/.zsh/completions/_poly
> ```

> [tab] Fish
>
> ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
> poly completion fish | source
> # or: poly completion fish > ~/.config/fish/completions/poly.fish
> ```
