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

# Autocomplétion

# `openclaw completion`

Générez des scripts d’autocomplétion shell et, en option, installez-les dans votre profil shell.

## Utilisation

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

## Options

* `-s, --shell <shell>` : cible shell (`zsh`, `bash`, `powershell`, `fish` ; par défaut : `zsh`)
* `-i, --install` : installe l’autocomplétion en ajoutant une ligne source à votre profil shell
* `--write-state` : écrit le ou les scripts d’autocomplétion dans `$OPENCLAW_STATE_DIR/completions` sans les afficher sur stdout
* `-y, --yes` : ignore les invites de confirmation d’installation

## Remarques

* `--install` écrit un petit bloc « OpenClaw Completion » dans votre profil shell et le fait pointer vers le script mis en cache.
* Sans `--install` ni `--write-state`, la commande affiche le script sur stdout.
* La génération d’autocomplétion charge de manière anticipée les arborescences de commandes afin d’inclure les sous-commandes imbriquées.

## Liens associés

* [Référence CLI](/fr/cli)
