wednesdayai completion
Generate shell completion scripts and optionally install them into your shell profile.
Completion is provided for wednesdayai only; the legacy openclaw alias gets no tab completion.
Usage
Options
-s, --shell <shell>: shell target (zsh,bash,powershell,fish). Without it, printing defaults tozsh,--installuses the shell from$SHELL(fallbackzsh), and--write-statewrites all four shells.-i, --install: write the cache script for the target shell and add a source line to your shell profile--write-state: write completion script(s) to$OPENCLAW_STATE_DIR/completionswithout printing to stdout-y, --yes: suppress the install success message
Notes
- Shell completion scripts are cached under
$OPENCLAW_STATE_DIR/completions/wednesdayai.<zsh|bash|fish|ps1>. --installwrites the cache script itself (no separate--write-statestep) and adds a# WednesdayAI Completionblock to your shell profile. It exits non-zero if the profile cannot be updated.- Profiles: zsh uses
~/.zshrc, fish uses~/.config/fish/config.fish, and bash uses~/.bashrc, or~/.bash_profilewhen there is no~/.bashrc. A newly created~/.bash_profilealso loads your existing~/.profile, so login shells keep its settings. - An older
# OpenClaw Completionblock or anwednesdayai completionline in your profile is replaced automatically by--install,wednesdayai doctor, onboarding, and update. - The zsh completion script automatically initializes completion via
compinitif it has not already been loaded. - Automatic installation into the profile is supported for
zsh,bash, andfish. For PowerShell, runwednesdayai completion --shell powershell --install: it writes the cache and prints the exact line to add to your$PROFILE, for example. "$HOME/.openclaw/completions/wednesdayai.ps1", or. "$env:OPENCLAW_STATE_DIR/completions/wednesdayai.ps1"whenOPENCLAW_STATE_DIRis set. - Without
--installor--write-state, the command prints the completion script to stdout. - Completion generation eagerly loads command trees so nested subcommands are included.