> For the complete documentation index, see [llms.txt](https://docs.apolo.us/index/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apolo.us/index/apolo-cli/commands/completion.md).

# completion

Output shell completion code

## Usage

```bash
apolo completion [OPTIONS] COMMAND [ARGS]...
```

Output shell completion code.

**Commands:**

| Usage                   | Description                              |
| ----------------------- | ---------------------------------------- |
| [*generate*](#generate) | Show instructions for shell completion   |
| [*patch*](#patch)       | Patch shell profile to enable completion |

### generate

Show instructions for shell completion

#### Usage

```bash
apolo completion generate [OPTIONS] {bash|zsh}
```

Show instructions for shell completion.

#### Options

| Name     | Description                 |
| -------- | --------------------------- |
| *--help* | Show this message and exit. |

### patch

Patch shell profile to enable completion

#### Usage

```bash
apolo completion patch [OPTIONS] {bash|zsh}
```

Patch shell profile to enable completion

Patches shell configuration while depending of current shell. Files patched:

bash: `~/.bashrc` zsh: `~/.zshrc`

#### Options

| Name     | Description                 |
| -------- | --------------------------- |
| *--help* | Show this message and exit. |
