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

# Completion

# `openclaw completion`

Buat skrip shell completion dan opsional pasang ke profil shell Anda.

## Penggunaan

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw completion
openclaw completion --shell zsh
openclaw completion --install
openclaw completion --shell fish --install
openclaw completion --write-state
openclaw completion --shell bash --write-state
```

## Opsi

* `-s, --shell <shell>`: target shell (`zsh`, `bash`, `powershell`, `fish`; default: `zsh`)
* `-i, --install`: pasang completion dengan menambahkan baris source ke profil shell Anda
* `--write-state`: tulis skrip completion ke `$OPENCLAW_STATE_DIR/completions` tanpa mencetak ke stdout
* `-y, --yes`: lewati prompt konfirmasi pemasangan

## Catatan

* `--install` menulis blok kecil "OpenClaw Completion" ke dalam profil shell Anda dan mengarahkannya ke skrip cache.
* Tanpa `--install` atau `--write-state`, perintah mencetak skrip ke stdout.
* Pembuatan completion memuat pohon perintah secara eager sehingga subperintah bertingkat disertakan.

## Terkait

* [Referensi CLI](/id/cli)
