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

Generieren Sie Shell-Completion-Skripte und installieren Sie sie optional in Ihr Shell-Profil.

## Verwendung

```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
```

## Optionen

* `-s, --shell <shell>`: Shell-Ziel (`zsh`, `bash`, `powershell`, `fish`; Standard: `zsh`)
* `-i, --install`: Completion installieren, indem eine `source`-Zeile zu Ihrem Shell-Profil hinzugefügt wird
* `--write-state`: Completion-Skript(e) nach `$OPENCLAW_STATE_DIR/completions` schreiben, ohne sie auf stdout auszugeben
* `-y, --yes`: Bestätigungsabfragen für die Installation überspringen

## Hinweise

* `--install` schreibt einen kleinen Block „OpenClaw Completion“ in Ihr Shell-Profil und verweist dabei auf das zwischengespeicherte Skript.
* Ohne `--install` oder `--write-state` gibt der Befehl das Skript auf stdout aus.
* Die Generierung von Completions lädt Befehlsbäume frühzeitig, damit verschachtelte Unterbefehle enthalten sind.

## Verwandt

* [CLI-Referenz](/de/cli)
