From 75cff38f4c921924ceb8fb7f083f1061d4f6889c Mon Sep 17 00:00:00 2001 From: dtzp555 Date: Wed, 25 Mar 2026 19:52:22 +1000 Subject: [PATCH] docs: improve CLI install instructions for cloud/Linux users Common issue: ocp not in PATH after clone. Added explicit symlink instructions with absolute paths and a troubleshooting note. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0dc6976..68346dd 100644 --- a/README.md +++ b/README.md @@ -135,16 +135,25 @@ openclaw gateway restart ### Install the CLI -The `ocp` command is included in the repo: +The `ocp` command is included in the repo but **not automatically added to PATH**. You need to do one of: ```bash -# Option 1: symlink to PATH +# Option 1: symlink to PATH (recommended) +sudo ln -sf ~/.openclaw/projects/ocp/ocp /usr/local/bin/ocp + +# Option 2: from the repo directory +cd ~/.openclaw/projects/ocp # or wherever you cloned it ln -sf $(pwd)/ocp /usr/local/bin/ocp -# Option 2: npm link (if installed globally) -npm link +# Option 3: add to PATH in your shell profile +echo 'export PATH="$HOME/.openclaw/projects/ocp:$PATH"' >> ~/.bashrc +source ~/.bashrc ``` +Verify: `ocp --help` + +> **Common issue on cloud/Linux servers:** If you get `ocp: command not found`, the repo was cloned but the binary isn't in PATH. Use one of the options above. The full path is typically `~/.openclaw/projects/ocp/ocp`. + ### Install the Gateway Plugin (for Telegram/Discord) Copy the plugin to the OpenClaw extensions directory: