Completion
기준일: 2026-07-26
공식 기준: Completion
Completion 문서는 OpenClaw 공식 문서(cli/completion)를 한국어로 정리한 가이드입니다. CLI reference for openclaw completion (generate/install shell completion scripts) 명령·설정 키·코드 예시는 공식 문서를 그대로 보존하며, 해석과 절차 안내는 한국어로 제공합니다. 최종 동작은 설치된 CLI 버전과 공식 원문을 확인하세요.
핵심 요약
CLI reference for openclaw completion (generate/install shell completion scripts)
한국어 가이드 범위: cli/completion 경로의 설정·명령·제약·예시를 학습용으로 재구성합니다.
문서 구성
공식 문서의 주요 섹션은 다음과 같습니다.
- 사용법
- 옵션
- Install flow
- 참고
- 관련 문서
상세 내용
openclaw completion
Generate shell completion scripts, cache them under OpenClaw state, and optionally install them into your shell profile.
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
사용법
openclaw completion # print zsh script to stdout
openclaw completion --shell fish # print fish script
openclaw completion --write-state # cache scripts for all shells
openclaw completion --write-state --install # cache, then install in one step
openclaw completion --shell bash --write-state
옵션
주요 항목:
-s, --shell <shell>: shell target (zsh,bash,powershell,fish; default:zsh)-i, --install: install completion by adding a source line for the cached script to your shell profile--write-state: write completion script(s) to$OPENCLAW_STATE_DIR/completions(default~/.openclaw/completions) without printing to stdout; with--shellwrites only that shell, otherwise all four-y, --yes: skip install confirmation prompts (non-interactive)
Install flow
--install points your profile at the cached script, so the cache must exist first: if it is missing, the command fails and tells you to run openclaw completion --write-state. Combine --write-state --install to do both in one step. Without --shell, --install detects the shell from $SHELL (falling back to zsh).
위 내용은 공식 문서의 해당 섹션 요지입니다. 세부 플래그·기본값은 원문과
--help를 확인하세요.
| Shell | Profile |
|---|---|
| bash | ~/.bashrc (falls back to ~/.bash_profile when ~/.bashrc is missing) |
| fish | ~/.config/fish/config.fish |
| powershell | ~/.config/powershell/Microsoft.PowerShell_profile.ps1 (on Windows: Documents/PowerShell/Microsoft.PowerShell_profile.ps1, or Documents/WindowsPowerShell/... for Windows PowerShell) |
| zsh | ~/.zshrc |
참고
주요 항목:
- Without
--installor--write-state, the command prints the script to stdout. - Completion generation eagerly loads the full command tree, including plugin CLI commands, so nested subcommands are included.
openclaw updaterefreshes the completion cache automatically after a successful update;openclaw doctorcan repair missing or stale completion setups.
관련 문서
주요 항목:
- CLI reference
실습 체크리스트
- 공식 문서와 로컬 버전을 대조합니다:
https://docs.openclaw.ai/cli/completion - 관련 CLI는
openclaw --help및 하위 명령--help로 옵션을 확인합니다. - 설정 변경 시
openclaw config/openclaw doctor로 유효성을 검사합니다. - Gateway·채널·플러그인 변경 후에는 필요 시 Gateway를 재시작합니다.
자주 쓰는 명령·설정 예시
openclaw completion # print zsh script to stdout
openclaw completion --shell fish # print fish script
openclaw completion --write-state # cache scripts for all shells
openclaw completion --write-state --install # cache, then install in one step
openclaw completion --shell bash --write-state
관련 링크
- 공식 원문: cli/completion
- OpenClaw 문서 홈
이 가이드는 공식 문서를 한국어 학습용으로 재구성한 것입니다. 옵션 기본값·플래그 이름은 설치 버전에 따라 달라질 수 있습니다.