---
title: completion
description: シェル補完スクリプトを標準出力へ生成する。
canonical_url: https://orchestor.io/docs/cli/completion
markdown_url: https://orchestor.io/docs/cli/completion.md
contentType: reference
---

# completion

`orc completion` は、Bash、Zsh、Fish、PowerShell用の補完スクリプトを標準出力へ生成するコマンドです。補完対象はCLIの公開コマンドツリーから取得します。スクリプトの出力だけで、シェルの設定ファイルを自動変更することはありません。

## 使い方

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

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

*Bash用の補完スクリプトを生成します。*

## 固有のオプション

### `--shell`

Shell: bash, zsh, fish, or powershell

型: `string`。任意。

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

## 使用例

### Zsh用のスクリプトをファイルへ保存します。

生成したファイルを確認し、使用するシェルの補完設定に従って読み込んでください。

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

*Zsh用のスクリプトをファイルへ保存します。*

## グローバルオプション

`orc completion` では、次の[グローバルオプション](https://orchestor.io/docs/cli/global-flags.md)を使用できます。

- [`--help`](https://orchestor.io/docs/cli/global-flags.md#%E3%83%98%E3%83%AB%E3%83%97)

各オプションの詳細と使用例は、[グローバルオプション](https://orchestor.io/docs/cli/global-flags.md)を参照してください。

---

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