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

# ankra completion

> Generate or install shell completion scripts

## ankra completion

Generate or install shell completion scripts for ankra.

To print a completion script to stdout:
ankra completion bash
ankra completion zsh
ankra completion fish
ankra completion powershell

To auto-detect your shell and install completions:
ankra completion install

To install for a specific shell:
ankra completion install --shell zsh

## ankra completion bash

Print bash completion script

```bash theme={null}
ankra completion bash
```

## ankra completion fish

Print fish completion script

```bash theme={null}
ankra completion fish
```

## ankra completion install

Detect your shell and install completion scripts automatically.

The command writes the completion script to the standard location for your
shell and updates your shell profile to source it (if needed).

Use --shell to override auto-detection.

```bash theme={null}
ankra completion install [flags]
```

**Flags**

| Flag      | Default | Description                              |
| --------- | ------- | ---------------------------------------- |
| `--shell` |         | shell type (bash, zsh, fish, powershell) |

## ankra completion powershell

Print powershell completion script

```bash theme={null}
ankra completion powershell
```

## ankra completion zsh

Print zsh completion script

```bash theme={null}
ankra completion zsh
```
