CLI commands
ข้อมูลอ้างอิง CLI
openclaw เป็นจุดเริ่มต้นหลักของ CLI คำสั่งหลักแต่ละคำสั่งมีหน้าข้อมูลอ้างอิงเฉพาะ หรือถูกบันทึกไว้พร้อมกับคำสั่งที่เป็น alias ให้ ดัชนีนี้แสดงรายการคำสั่ง flag ส่วนกลาง และกฎรูปแบบเอาต์พุตที่ใช้ทั่วทั้ง CLI
ใช้คำสั่งตั้งค่าตามเจตนา:
openclaw setupสร้าง config และ workspace พื้นฐานโดยไม่เข้าสู่โฟลว์ onboarding แบบมีคำแนะนำเต็มรูปแบบopenclaw onboardคือเส้นทางเริ่มใช้งานครั้งแรกแบบมีคำแนะนำเต็มรูปแบบสำหรับ gateway, model auth, workspace, channels, skills และ healthopenclaw configureเปลี่ยนส่วนที่เจาะจงของการตั้งค่าที่มีอยู่ เช่น model auth, gateway, channels, plugins หรือ skillsopenclaw channels addกำหนดค่าบัญชี channel หลังจากมีพื้นฐานแล้ว รันโดยไม่มี flag เพื่อเข้าสู่การตั้งค่า channel แบบมีคำแนะนำ หรือใช้ flag เฉพาะ channel สำหรับสคริปต์
หน้าคำสั่ง
| พื้นที่ | คำสั่ง |
|---|---|
| การตั้งค่าและ onboarding | crestodian · setup · onboard · configure · config · completion · doctor · dashboard |
| รีเซ็ตและถอนการติดตั้ง | backup · reset · uninstall · update |
| การส่งข้อความและเอเจนต์ | message · agent · agents · acp · mcp |
| สถานะสุขภาพและเซสชัน | status · health · sessions |
| Gateway และ log | gateway · logs · system |
| โมเดลและการอนุมาน | models · infer · capability (alias สำหรับ infer) · memory · commitments · wiki |
| เครือข่ายและโหนด | directory · nodes · devices · node |
| Runtime และ sandbox | approvals · exec-policy (ดู approvals) · sandbox · tui · chat/terminal (alias สำหรับ tui --local) · browser |
| Automation | cron · tasks · hooks · webhooks · transcripts |
| Discovery และเอกสาร | dns · docs |
| การจับคู่และ channels | pairing · qr · channels |
| ความปลอดภัยและ Plugins | security · secrets · skills · plugins · proxy |
| Alias รุ่นเก่า | daemon (บริการ gateway) · clawbot (namespace) |
| Plugins (ไม่บังคับ) | path · policy · voicecall · workboard (หากติดตั้งแล้ว) |
Flag ส่วนกลาง
| Flag | วัตถุประสงค์ |
|---|---|
--dev |
แยก state ไว้ใต้ ~/.openclaw-dev และเลื่อน port เริ่มต้น |
--profile <name> |
แยก state ไว้ใต้ ~/.openclaw-<name> |
--container <name> |
ระบุ container ที่มีชื่อสำหรับการดำเนินการ |
--no-color |
ปิดใช้งานสี ANSI (NO_COLOR=1 ก็ได้รับการเคารพเช่นกัน) |
--update |
รูปย่อสำหรับ openclaw update (เฉพาะการติดตั้งจาก source) |
-V, --version, -v |
พิมพ์เวอร์ชันแล้วออก |
โหมดเอาต์พุต
- สี ANSI และตัวบ่งชี้ความคืบหน้าจะแสดงเฉพาะในเซสชัน TTY
- ไฮเปอร์ลิงก์ OSC-8 จะแสดงเป็นลิงก์ที่คลิกได้ในที่ที่รองรับ มิฉะนั้น CLI จะถอยกลับไปใช้ URL แบบธรรมดา
--json(และ--plainในที่ที่รองรับ) จะปิดรูปแบบสำหรับเอาต์พุตที่สะอาด- คำสั่งที่รันนานจะแสดงตัวบ่งชี้ความคืบหน้า (OSC 9;4 เมื่อรองรับ)
แหล่งความจริงของพาเลตต์: src/terminal/palette.ts
แผนผังคำสั่ง
แผนผังคำสั่งแบบเต็ม
openclaw [--dev] [--profile <name>] <command>crestodiansetuponboardconfigureconfig get set unset file schema validatecompletiondoctordashboardbackup create verifysecurity auditsecrets reload audit configure applyresetuninstallupdate wizard statuschannels list status capabilities resolve logs add remove login logoutdirectory self peers list groups list|membersskills search install update list info checkplugins list inspect install uninstall update enable disable doctor marketplace listworkboard list create show dispatchmemory status index searchtranscripts list show pathpath resolve find set validate emitcommitments list dismisswiki status doctor init ingest compile lint search get apply bridge import unsafe-local import obsidian status|search|open|command|dailymessage send broadcast poll react reactions read edit delete pin unpin pins permissions search thread create|list|reply emoji list|upload sticker send|upload role info|add|remove channel info|list member info voice status event list|create timeout kick banagentagents list add delete bindings bind unbind set-identityacpmcp serve list show set unsetstatushealthsessions cleanuptasks list audit maintenance show notify cancel flow list|show|cancelgateway call usage-cost health status probe discover install uninstall start stop restart rundaemon status install uninstall start stop restartlogssystem event heartbeat last|enable|disable presencemodels list status set set-image aliases list|add|remove fallbacks list|add|remove|clear image-fallbacks list|add|remove|clear scaninfer (alias: capability) list inspect model run|list|inspect|providers|auth login|logout|status image generate|edit|describe|describe-many|providers audio transcribe|providers tts convert|voices|providers|status|enable|disable|set-provider video generate|describe|providers web search|fetch|providers embedding create|providers auth add|login|login-github-copilot|setup-token|paste-token auth order get|set|clearsandbox list recreate explaincron status list get add edit rm enable disable runs runnodes status describe list pending approve reject rename invoke notify push canvas snapshot|present|hide|navigate|eval canvas a2ui push|reset camera list|snap|clip screen record location getdevices list remove clear approve reject rotate revokenode run status install uninstall stop restartapprovals get set allowlist add|removeexec-policy show preset setbrowser status start stop reset-profile tabs open focus close profiles create-profile delete-profile screenshot snapshot navigate resize click type press hover drag select upload fill dialog wait evaluate console pdfhooks list info check enable disable install updatewebhooks gmail setup|runproxy start run coverage sessions query blob purgepairing list approveqrclawbot qrdocsdns setuptuichat (alias: tui --local)terminal (alias: tui --local)Plugins สามารถเพิ่มคำสั่งระดับบนสุดเพิ่มเติมได้ เช่น
openclaw workboard หรือ openclaw voicecall
คำสั่ง slash ในแชต
ข้อความแชตรองรับคำสั่ง /... ดู คำสั่ง slash
ไฮไลต์:
/status— การวินิจฉัยอย่างรวดเร็ว/trace— บรรทัด trace/debug ของ Plugin ที่จำกัดตามเซสชัน/config— การเปลี่ยนแปลง config ที่บันทึกถาวร/debug— การ override config เฉพาะ runtime (หน่วยความจำ ไม่ใช่ดิสก์ ต้องใช้commands.debug: true)
การติดตามการใช้งาน
openclaw status --usage และ UI ควบคุมจะแสดงการใช้งาน/โควตาของ provider เมื่อมีข้อมูลประจำตัว OAuth/API ข้อมูลมาจาก endpoint การใช้งานของ provider โดยตรง และถูกทำให้เป็นมาตรฐานเป็น X% left Provider ที่มีหน้าต่างการใช้งานปัจจุบัน: Anthropic, GitHub Copilot, Gemini CLI, OpenAI Codex, MiniMax,
Xiaomi และ z.ai
ดูรายละเอียดที่ การติดตามการใช้งาน