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

# Completion

> Generate shell completion scripts for bash, zsh, fish, or powershell.

# Completion

`cmd/crewship/cmd_completion.go` is the standard Cobra-generated shell-completion command. Emits a completion script to stdout for the requested shell. No flags — just a single positional arg.

## `crewship completion <shell>`

Valid args: `bash`, `zsh`, `fish`, `powershell`.

### Bash

```bash theme={null}
source <(crewship completion bash)
# Persist:
crewship completion bash > /etc/bash_completion.d/crewship
```

### Zsh

```zsh theme={null}
source <(crewship completion zsh)
# Persist:
crewship completion zsh > "${fpath[1]}/_crewship"
```

### Fish

```fish theme={null}
crewship completion fish | source
# Persist:
crewship completion fish > ~/.config/fish/completions/crewship.fish
```

### PowerShell

```powershell theme={null}
crewship completion powershell | Out-String | Invoke-Expression
```

## See also

* [`crewship shell`](/cli/shell) — the in-CLI REPL (different concept — no shell-level completion).
* [`crewship login`](/cli/login) — first command to set up before completions are useful.
