> Markdown version of https://tuna.am/en/docs/cli/completion/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# tuna completion

Output shell completion code for the specified shell (bash, zsh, fish, or powershell).

Guide with examples: [Autocompletion](https://tuna.am/en/docs/guides/completion.md).

Usage

```bash
tuna completion SHELL

```

Examples

```bash
# PowerShell
tuna completion powershell | Out-String | Invoke-Expression

# Zsh
source <(tuna completion zsh)

# Bash
source <(tuna completion bash)

# Fish
tuna completion fish | source

```

[Global flags](https://tuna.am/en/docs/cli.md#global-flags) work too.
