Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

openclaw completion

สร้างสคริปต์ shell completion และเลือกติดตั้งลงในโปรไฟล์ shell ของคุณได้

การใช้งาน

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>: shell เป้าหมาย (zsh, bash, powershell, fish; ค่าเริ่มต้น: zsh)
  • -i, --install: ติดตั้ง completion โดยเพิ่มบรรทัด source ลงในโปรไฟล์ shell ของคุณ
  • --write-state: เขียนสคริปต์ completion ลงใน $OPENCLAW_STATE_DIR/completions โดยไม่พิมพ์ไปยัง stdout
  • -y, --yes: ข้ามข้อความยืนยันการติดตั้ง

หมายเหตุ

  • --install จะเขียนบล็อก “OpenClaw Completion” ขนาดเล็กลงในโปรไฟล์ shell ของคุณ และชี้ไปยังสคริปต์ที่แคชไว้
  • หากไม่ใช้ --install หรือ --write-state คำสั่งจะพิมพ์สคริปต์ไปยัง stdout
  • การสร้าง completion จะโหลดโครงสร้างคำสั่งแบบ eager เพื่อให้รวม subcommands ที่ซ้อนอยู่ด้วย

ที่เกี่ยวข้อง