























@@ -20,6 +20,7 @@ To switch channels or target a specific version:
20202121```bash
2222openclaw update --channel beta
23+openclaw update --channel dev
2324openclaw update --tag main
2425openclaw update --dry-run # preview without applying
2526```
@@ -30,13 +31,41 @@ if you want the raw npm beta dist-tag for a one-off package update.
30313132See [Development channels](/install/development-channels) for channel semantics.
323334+## Switch between npm and git installs
35+36+Use channels when you want to change the install type. The updater keeps your
37+state, config, credentials, and workspace in `~/.openclaw`; it only changes
38+which OpenClaw code install the CLI and gateway use.
39+40+```bash
41+# npm package install -> editable git checkout
42+openclaw update --channel dev
43+44+# git checkout -> npm package install
45+openclaw update --channel stable
46+```
47+48+Run with `--dry-run` first to preview the exact install-mode switch:
49+50+```bash
51+openclaw update --channel dev --dry-run
52+openclaw update --channel stable --dry-run
53+```
54+55+The `dev` channel ensures a git checkout, builds it, and installs the global CLI
56+from that checkout. The `stable` and `beta` channels use package installs. If the
57+gateway is already installed, `openclaw update` refreshes the service metadata
58+and restarts it unless you pass `--no-restart`.
59+3360## Alternative: re-run the installer
34613562```bash
3663curl -fsSL https://openclaw.ai/install.sh | bash
3764```
386539-Add `--no-onboard` to skip onboarding. For source installs, pass `--install-method git --no-onboard`.
66+Add `--no-onboard` to skip onboarding. To force a specific install type through
67+the installer, pass `--install-method git --no-onboard` or
68+`--install-method npm --no-onboard`.
40694170## Alternative: manual npm, pnpm, or bun
4271此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。