메인 콘텐츠로 건너뛰기

openclaw completion

셸 자동 완성 스크립트를 생성하고, 선택적으로 셸 프로필에 설치합니다.

사용법

openclaw completion
openclaw completion --shell zsh
openclaw completion --install
openclaw completion --shell fish --install
openclaw completion --write-state
openclaw completion --shell bash --write-state

옵션

  • -s, --shell <shell>: 셸 대상(zsh, bash, powershell, fish; 기본값: zsh)
  • -i, --install: 셸 프로필에 source 줄을 추가하여 자동 완성 설치
  • --write-state: 스크립트를 stdout에 출력하지 않고 $OPENCLAW_STATE_DIR/completions에 자동 완성 스크립트를 작성
  • -y, --yes: 설치 확인 프롬프트 건너뛰기

참고

  • --install은 셸 프로필에 작은 “OpenClaw Completion” 블록을 작성하고 이를 캐시된 스크립트에 연결합니다.
  • --install이나 --write-state가 없으면 명령은 스크립트를 stdout에 출력합니다.
  • 자동 완성 생성은 중첩된 하위 명령이 포함되도록 명령 트리를 eager 로드합니다.