---
title: completion
description: Generate a shell completion script on standard output.
canonical_url: https://orchestor.io/docs/en/cli/completion
markdown_url: https://orchestor.io/docs/en/cli/completion.md
contentType: reference
---

# completion

`orc completion` generates shell completion scripts for Bash, Zsh, Fish, or PowerShell on standard output. Completion targets come from the public CLI command tree. Printing a script does not automatically modify shell configuration files.

## Usage

```bash title="terminal"
orc completion <shell> [options]
```

```bash title="terminal"
orc completion bash
```

*Generate Bash completions.*

## Unique options

### `--shell`

Shell: bash, zsh, fish, or powershell

Type: `string`. Optional.

```bash title="terminal"
orc completion <shell> --shell <value>
```

## Examples

### Save the Zsh script to a file.

Inspect the generated file and load it using your shell’s completion configuration.

```bash title="terminal"
orc completion zsh > orchestor-completion.zsh
```

*Save the Zsh script to a file.*

## Global Options

The following [global options](https://orchestor.io/docs/cli/global-flags.md) can be used with `orc completion`:

- [`--help`](https://orchestor.io/docs/cli/global-flags.md#help)

For details and examples, see [global options](https://orchestor.io/docs/cli/global-flags.md).

---

[Documentation index](https://orchestor.io/docs/llms.txt)
