# 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. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apolo.us/index/apolo-cli/commands/completion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
