#परिशिष्ट A: कमांड चीट शीट
OpenClaw ढेर सारे कमांड लाइन टूल प्रदान करता है। यह परिशिष्ट आधिकारिक दस्तावेज़ीकरण के आधार पर आमतौर पर उपयोग किए जाने वाले सभी आदेशों को व्यवस्थित करता है।
संदर्भ स्रोत: OpenClaw CLI Reference
त्वरित नेविगेशन
वैश्विक विकल्प
bash
openclaw [--dev] [--profile <name>] <command>
--dev # 隔离状态到 ~/.openclaw-dev,并偏移默认端口
--profile <name> # 隔离状态到 ~/.openclaw-<name>
--no-color # 禁用 ANSI 颜色
--update # 简写为 openclaw update(仅源码安装)
-V, --version, -v # 打印版本并退出इंस्टालेशन और अपडेट
ओपनक्लॉ स्थापित करें
bash
# 通过 npm 安装(推荐)
npm install -g openclaw@latest
# 或通过 pnpm
pnpm add -g openclaw@latestओपनक्लॉ को अपडेट करें
bash
# 检查并更新到最新版本
openclaw update
# 切换到特定频道
openclaw update --channel stable|beta|dev
# 查看当前版本
openclaw --versionओपनक्लॉ को अनइंस्टॉल करें
bash
# 卸载网关服务和本地数据(CLI 保留)
openclaw uninstall
# 指定范围卸载
openclaw uninstall --service --state --workspace --app --all
# 重置配置和状态(保留 CLI)
openclaw reset
openclaw reset --scope config+creds+sessions --yesआरंभीकरण और कॉन्फ़िगरेशन
आरंभीकरण विज़ार्ड
bash
# 交互式设置向导(推荐)
openclaw onboard
# 初始化并安装守护进程
openclaw onboard --install-daemon
# 非交互式模式
openclaw onboard --non-interactive --mode local
# 重置后重新初始化
openclaw onboard --resetकॉन्फ़िगरेशन विज़ार्ड
bash
# 交互式配置向导
openclaw configure
# 验证配置
openclaw doctor
openclaw doctor --fix # 自动修复
openclaw doctor --deep # 深度扫描कंसोल खोलें
bash
# 启动 Web Dashboard
openclaw dashboardगेटवे प्रबंधन
गेटवे OpenClaw की मुख्य सेवा है और डिफ़ॉल्ट रूप से ws://127.0.0.1:18789 पर चलती है।
गेटवे प्रारंभ करें
bash
# 前台运行(调试模式)
openclaw gateway --port 18789 --verbose
# 指定绑定地址
openclaw gateway --bind loopback|lan|tailnet|auto|custom
# 使用 Token 认证
openclaw gateway --auth token --token <token>
# 使用密码认证
openclaw gateway --auth password --password <password>
# Tailscale 集成
openclaw gateway --tailscale serve|funnel
# 开发模式
openclaw gateway --devगेटवे सेवा प्रबंधन
bash
# 查看网关服务状态
openclaw gateway status
# 安装为系统服务
openclaw gateway install
# 卸载服务
openclaw gateway uninstall
# 启动/停止/重启服务
openclaw gateway start
openclaw gateway stop
openclaw gateway restart
# 查看日志
openclaw logs
openclaw logs --limit 100गेटवे स्वास्थ्य जांच
bash
# 获取网关健康状态
openclaw health
openclaw health --json
openclaw health --verbose
# 网关调用(RPC)
openclaw gateway call <method> --params '<json>'एजेंट प्रबंधन
सभी एजेंटों की सूची बनाएं
bash
openclaw agents list
openclaw agents list --json
openclaw agents list --bindingsएजेंट जोड़ें
bash
# 交互式添加
openclaw agents add
# 指定名称添加
openclaw agents add [name]
# 非交互式添加
openclaw agents add my-agent \
--workspace ~/.openclaw/workspace-my-agent \
--model anthropic/claude-sonnet-4-5 \
--bind whatsapp:personal \
--non-interactiveबाइंडिंग प्रबंधन
bash
# 查看绑定
openclaw agents bindings
openclaw agents bindings --agent <id>
# 添加绑定
openclaw agents bind --agent <id> --bind <channel[:accountId]>
# 移除绑定
openclaw agents unbind --agent <id> --bind <channel[:accountId]>
openclaw agents unbind --agent <id> --allएजेंट हटाएँ
bash
openclaw agents delete <id>
openclaw agents delete <id> --forceरन एजेंट
bash
# 单次对话
openclaw agent --message "Hello" --to <dest>
# 指定会话
openclaw agent --message "Hello" --session-id <id>
# 指定思考级别
openclaw agent --message "Hello" --thinking high
# 本地模式(不通过网关)
openclaw agent --message "Hello" --local
# 指定渠道回复
openclaw agent --message "Hello" --channel whatsapp --deliverकौशल प्रबंधन
सूची कौशल
bash
openclaw skills list
openclaw skills list --eligible # 仅显示就绪技能
openclaw skills list --json
openclaw skills list -v # 显示缺失需求详情कौशल विवरण देखें
bash
openclaw skills info <name>कौशल स्थिति जांचें
bash
openclaw skills checkयुक्ति: कौशल खोजने, स्थापित करने और सिंक करने के लिए
npx clawhubका उपयोग करें।
प्लग-इन प्रबंधन
सूची प्लगइन्स
bash
openclaw plugins list
openclaw plugins list --jsonप्लग-इन विवरण देखें
bash
openclaw plugins info <id>प्लगइन इंस्टॉल करें
bash
openclaw plugins install <path|.tgz|npm-spec>प्लगइन्स सक्षम/अक्षम करें
bash
openclaw plugins enable <id>
openclaw plugins disable <id>प्लग-इन डायग्नोस्टिक्स
bash
openclaw plugins doctorमेमोरी प्रबंधन
स्मृति स्थिति देखें
bash
openclaw memory statusअनुक्रमणिका स्मृति
bash
openclaw memory indexस्मृति खोजें
bash
openclaw memory search "<query>"
openclaw memory search --query "<query>"डिवाइस प्रबंधन
उपकरणों की सूची बनाएं
bash
openclaw devices list
openclaw devices list --jsonअनुमोदन उपकरण
bash
openclaw devices approve [requestId]
openclaw devices approve --latestडिवाइस अस्वीकार करें
bash
openclaw devices reject <requestId>डिवाइस निकालें
bash
openclaw devices remove <deviceId>साफ़ डिवाइस
bash
openclaw devices clear --yes
openclaw devices clear --yes --pendingजोड़ी प्रबंधन
जोड़ी बनाने के अनुरोधों की सूची बनाएं
bash
openclaw pairing list
openclaw pairing list [channel] --channel <channel> --account <id>जोड़ी को मंजूरी दें
bash
openclaw pairing approve <channel> <code>
openclaw pairing approve --channel <channel> <code> --notifyचैनल प्रबंधन
चैनलों की सूची बनाएं
bash
openclaw channels list
openclaw channels list --jsonचैनल की स्थिति जांचें
bash
openclaw channels status
openclaw channels status --probeचैनल लॉग देखें
bash
openclaw channels logs
openclaw channels logs --channel <name> --limit 200चैनल जोड़ें
bash
# 交互式添加
openclaw channels add
# 非交互式添加 Telegram
openclaw channels add \
--channel telegram \
--account alerts \
--name "Alerts Bot" \
--token $TELEGRAM_BOT_TOKEN
# 非交互式添加 Discord
openclaw channels add \
--channel discord \
--account work \
--name "Work Bot" \
--token $DISCORD_BOT_TOKENचैनल हटाएँ
bash
openclaw channels remove --channel <channel> --account <id>
openclaw channels remove --channel <channel> --account <id> --deleteलॉगिन/लॉगआउट
bash
# WhatsApp Web 登录
openclaw channels login
openclaw channels login --channel whatsapp --account <id> --verbose
# 登出
openclaw channels logout
openclaw channels logout --channel <channel> --account <id>संदेश भेजना
संदेश भेजें
bash
openclaw message send --target +15555550123 --message "Hello"वोट भेजें
bash
openclaw message poll \
--channel discord \
--target channel:123 \
--poll-question "Snack?" \
--poll-option Pizza \
--poll-option Sushiअन्य संदेश संचालन
bash
openclaw message react
openclaw message reactions
openclaw message read
openclaw message edit
openclaw message delete
openclaw message pin
openclaw message unpinमॉडल प्रबंधन
सूची मॉडल
bash
openclaw models list
openclaw models statusमॉडल सेट करें
bash
openclaw models set <model>
openclaw models set-image <model>मॉडल उपनाम
bash
openclaw models aliases list
openclaw models aliases add <alias> <model>
openclaw models aliases remove <alias>मॉडल रोलबैक
bash
openclaw models fallbacks list
openclaw models fallbacks add <model>
openclaw models fallbacks remove <model>
openclaw models fallbacks clearमॉडल प्रमाणन
bash
openclaw models auth add
openclaw models auth setup-token
openclaw models auth paste-token
openclaw models auth order get|set|clearकॉन्फ़िगरेशन संचालन
कॉन्फ़िगरेशन प्राप्त करें
bash
openclaw config get <path>
openclaw config get agents.defaults.workspaceकॉन्फ़िगरेशन सेट करें
bash
openclaw config set <path> <value>
openclaw config set agents.defaults.heartbeat.every "2h"कॉन्फ़िगरेशन हटाएं
bash
openclaw config unset <path>कॉन्फ़िगरेशन फ़ाइल पथ
bash
openclaw config fileकॉन्फ़िगरेशन सत्यापित करें
bash
openclaw config validate
openclaw config validate --jsonसिस्टम प्रबंधन
सिस्टम इवेंट
bash
openclaw system eventदिल की धड़कन प्रबंधन
bash
openclaw system heartbeat last
openclaw system heartbeat enable
openclaw system heartbeat disableऑनलाइन स्थिति
bash
openclaw system presenceसुरक्षा प्रबंधन
सुरक्षा ऑडिट
bash
openclaw security audit
openclaw security audit --deep
openclaw security audit --fixप्रमुख प्रबंधन
bash
openclaw secrets reload
openclaw secrets audit
openclaw secrets configure
openclaw secrets apply --from <plan.json>सत्र प्रबंधन
सूची सत्र
bash
openclaw sessions list
openclaw sessions --json
openclaw sessions --verboseस्थिति जांचें
bash
openclaw status
openclaw status --json
openclaw status --deep
openclaw status --usageब्राउज़र प्रबंधन
bash
openclaw browser status
openclaw browser start
openclaw browser stop
openclaw browser reset-profile
openclaw browser tabs
openclaw browser open <url>
openclaw browser screenshot
openclaw browser navigate <url>निर्धारित कार्य
bash
openclaw cron status
openclaw cron list
openclaw cron add
openclaw cron edit <id>
openclaw cron rm <id>
openclaw cron enable <id>
openclaw cron disable <id>
openclaw cron runs
openclaw cron run <id>शॉर्टकट कमांड उपनाम
दक्षता में सुधार के लिए, आप आमतौर पर उपयोग किए जाने वाले कमांड के लिए उपनाम सेट कर सकते हैं:
bash
# 添加到 ~/.bashrc 或 ~/.zshrc
alias oc='openclaw'
alias ocg='openclaw gateway'
alias ocs='openclaw skills'
alias oca='openclaw agents'
alias ocd='openclaw dashboard'
alias ocdr='openclaw doctor'
alias occh='openclaw channels'
# 快速启动别名
alias ocstart='openclaw gateway start && openclaw dashboard'
alias ocstop='openclaw gateway stop'
alias ocrestart='openclaw gateway restart'त्वरित जांच से समस्या निवारण
| समस्या | डायग्नोस्टिक कमांड | समाधान |
|---|---|---|
| गेटवे प्रारंभ नहीं किया जा सकता | openclaw doctor | पोर्ट अधिभोग की जाँच करें और लॉग देखें |
| डैशबोर्ड तक नहीं पहुंचा जा सकता | openclaw gateway status | पुष्टि करें कि गेटवे चल रहा है और फ़ायरवॉल की जाँच करें |
| चैनल कनेक्शन विफल | openclaw channels status --probe | चैनल कॉन्फ़िगरेशन और प्रमाणीकरण की जाँच करें |
| मॉडल कनेक्शन विफल | openclaw models status | एपीआई कुंजी और मॉडल कॉन्फ़िगरेशन सत्यापित करें |
| डिवाइस पेयरिंग विफल | openclaw devices list | लंबित डिवाइस को मंजूरी दें |
| कॉन्फ़िगरेशन सत्यापन विफल | openclaw config validate | त्रुटि संकेत के अनुसार कॉन्फ़िगरेशन को सुधारें |
अधिक सहायता
bash
# 查看全局帮助
openclaw --help
# 查看子命令帮助
openclaw <command> --help
# 查看具体命令帮助
openclaw gateway --help
openclaw channels add --helpटिप्स: यह चीट शीट आधिकारिक ओपनक्लाव दस्तावेज़ पर आधारित है। नवीनतम जानकारी के लिए docs.openclaw.ai पर जाने की अनुशंसा की जाती है।