CLI commands

ข้อมูลอ้างอิง CLI

openclaw คือจุดเข้าใช้งานหลักของ CLI คำสั่งหลักแต่ละคำสั่งมีหน้าข้อมูลอ้างอิงเฉพาะ หรือมีเอกสารอยู่กับคำสั่งที่เป็น alias ของมัน ดัชนีนี้แสดงรายการคำสั่ง แฟล็กส่วนกลาง และกฎการจัดรูปแบบเอาต์พุตที่ใช้ทั่วทั้ง CLI

หน้าคำสั่ง

พื้นที่ คำสั่ง
การตั้งค่าและการเริ่มใช้งาน crestodian · setup · onboard · configure · config · completion · doctor · dashboard
รีเซ็ตและถอนการติดตั้ง backup · reset · uninstall · update
การรับส่งข้อความและเอเจนต์ message · agent · agents · acp · mcp
สุขภาพระบบและเซสชัน status · health · sessions
Gateway และล็อก gateway · logs · system
โมเดลและการอนุมาน models · infer · capability (alias สำหรับ infer) · memory · commitments · wiki
เครือข่ายและโหนด directory · nodes · devices · node
รันไทม์และแซนด์บ็อกซ์ approvals · exec-policy (ดู approvals) · sandbox · tui · chat/terminal (alias สำหรับ tui --local) · browser
ระบบอัตโนมัติ cron · tasks · hooks · webhooks
การค้นพบและเอกสาร dns · docs
การจับคู่และช่องทาง pairing · qr · channels
ความปลอดภัยและ Plugins security · secrets · skills · plugins · proxy
Alias แบบเดิม daemon (บริการ Gateway) · clawbot (namespace)
Plugins (ไม่บังคับ) voicecall (หากติดตั้งแล้ว)

แฟล็กส่วนกลาง

แฟล็ก วัตถุประสงค์
--dev แยกสถานะไว้ใต้ ~/.openclaw-dev และเลื่อนพอร์ตเริ่มต้น
--profile <name> แยกสถานะไว้ใต้ ~/.openclaw-<name>
--container <name> ระบุคอนเทนเนอร์ที่มีชื่อสำหรับการดำเนินการ
--no-color ปิดใช้สี ANSI (NO_COLOR=1 ก็ได้รับการเคารพเช่นกัน)
--update รูปย่อสำหรับ openclaw update (เฉพาะการติดตั้งจากซอร์ส)
-V, --version, -v พิมพ์เวอร์ชันแล้วออก

โหมดเอาต์พุต

  • สี ANSI และตัวบ่งชี้ความคืบหน้าจะแสดงผลเฉพาะในเซสชัน TTY
  • ไฮเปอร์ลิงก์ OSC-8 จะแสดงเป็นลิงก์ที่คลิกได้ในที่ที่รองรับ ไม่เช่นนั้น CLI จะย้อนกลับไปใช้ URL แบบข้อความธรรมดา
  • --json (และ --plain ในที่ที่รองรับ) จะปิดการจัดรูปแบบเพื่อให้ได้เอาต์พุตที่สะอาด
  • คำสั่งที่ทำงานนานจะแสดงตัวบ่งชี้ความคืบหน้า (OSC 9;4 เมื่อรองรับ)

แหล่งความจริงของพาเลตต์: src/terminal/palette.ts.

ต้นไม้คำสั่ง

ต้นไม้คำสั่งทั้งหมด
openclaw [--dev] [--profile <name>] <command>
crestodian
setup
onboard
configure
config
  get
  set
  unset
  file
  schema
  validate
completion
doctor
dashboard
backup
  create
  verify
security
  audit
secrets
  reload
  audit
  configure
  apply
reset
uninstall
update
  wizard
  status
channels
  list
  status
  capabilities
  resolve
  logs
  add
  remove
  login
  logout
directory
  self
  peers list
  groups list|members
skills
  search
  install
  update
  list
  info
  check
plugins
  list
  inspect
  install
  uninstall
  update
  enable
  disable
  doctor
  marketplace list
memory
  status
  index
  search
commitments
  list
  dismiss
wiki
  status
  doctor
  init
  ingest
  compile
  lint
  search
  get
  apply
  bridge import
  unsafe-local import
  obsidian status|search|open|command|daily
message
  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
  ban
agent
agents
  list
  add
  delete
  bindings
  bind
  unbind
  set-identity
acp
mcp
  serve
  list
  show
  set
  unset
status
health
sessions
  cleanup
tasks
  list
  audit
  maintenance
  show
  notify
  cancel
  flow list|show|cancel
gateway
  call
  usage-cost
  health
  status
  probe
  discover
  install
  uninstall
  start
  stop
  restart
  run
daemon
  status
  install
  uninstall
  start
  stop
  restart
logs
system
  event
  heartbeat last|enable|disable
  presence
models
  list
  status
  set
  set-image
  aliases list|add|remove
  fallbacks list|add|remove|clear
  image-fallbacks list|add|remove|clear
  scan
infer (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|clear
sandbox
  list
  recreate
  explain
cron
  status
  list
  add
  edit
  rm
  enable
  disable
  runs
  run
nodes
  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 get
devices
  list
  remove
  clear
  approve
  reject
  rotate
  revoke
node
  run
  status
  install
  uninstall
  stop
  restart
approvals
  get
  set
  allowlist add|remove
exec-policy
  show
  preset
  set
browser
  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
  pdf
hooks
  list
  info
  check
  enable
  disable
  install
  update
webhooks
  gmail setup|run
proxy
  start
  run
  coverage
  sessions
  query
  blob
  purge
pairing
  list
  approve
qr
clawbot
  qr
docs
dns
  setup
tui
chat (alias: tui --local)
terminal (alias: tui --local)

Plugins สามารถเพิ่มคำสั่งระดับบนสุดเพิ่มเติมได้ (เช่น openclaw voicecall)

คำสั่ง slash ในแชต

ข้อความแชตรองรับคำสั่ง /... ดู คำสั่ง slash

จุดเด่น:

  • /status — การวินิจฉัยอย่างรวดเร็ว
  • /trace — บรรทัด trace/debug ของ Plugin ที่จำกัดขอบเขตตามเซสชัน
  • /config — การเปลี่ยนแปลง config ที่บันทึกคงอยู่
  • /debug — การแทนที่ config เฉพาะรันไทม์ (หน่วยความจำ ไม่ใช่ดิสก์ ต้องใช้ commands.debug: true)

การติดตามการใช้งาน

openclaw status --usage และ Control UI จะแสดงการใช้งาน/โควตาของผู้ให้บริการเมื่อมีข้อมูลรับรอง OAuth/API ข้อมูลมาจาก endpoints การใช้งานของผู้ให้บริการโดยตรง และถูกทำให้เป็นมาตรฐานเป็น X% left ผู้ให้บริการที่มีหน้าต่างการใช้งานปัจจุบัน: Anthropic, GitHub Copilot, Gemini CLI, OpenAI Codex, MiniMax, Xiaomi และ z.ai

ดูรายละเอียดที่ การติดตามการใช้งาน

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