diff --git a/docs/cli/plugins.md b/docs/cli/plugins.md index f315fa274ce..92f01332465 100644 --- a/docs/cli/plugins.md +++ b/docs/cli/plugins.md @@ -33,7 +33,7 @@ openclaw plugins enable openclaw plugins disable openclaw plugins uninstall openclaw plugins doctor -openclaw plugins update +openclaw plugins update openclaw plugins update --all openclaw plugins marketplace list openclaw plugins marketplace list --json diff --git a/docs/tools/plugin.md b/docs/tools/plugin.md index e6a4ac7201d..729b54cff2c 100644 --- a/docs/tools/plugin.md +++ b/docs/tools/plugin.md @@ -234,8 +234,8 @@ openclaw plugins install --marketplace openclaw plugins install --marketplace https://github.com// openclaw plugins install --pin # record exact resolved npm spec openclaw plugins install --dangerously-force-unsafe-install -openclaw plugins update # update one plugin -openclaw plugins update --dangerously-force-unsafe-install +openclaw plugins update # update one plugin +openclaw plugins update --dangerously-force-unsafe-install openclaw plugins update --all # update all openclaw plugins uninstall # remove config/install records openclaw plugins uninstall --keep-files @@ -250,9 +250,18 @@ Bundled plugins ship with OpenClaw. Many are enabled by default (for example bundled model providers, bundled speech providers, and the bundled browser plugin). Other bundled plugins still need `openclaw plugins enable `. -`--force` overwrites an existing installed plugin or hook pack in place. -It is not supported with `--link`, which reuses the source path instead of -copying over a managed install target. +`--force` overwrites an existing installed plugin or hook pack in place. Use +`openclaw plugins update ` for routine upgrades of tracked npm +plugins. It is not supported with `--link`, which reuses the source path instead +of copying over a managed install target. + +`openclaw plugins update ` applies to tracked installs. Passing +an npm package spec with a dist-tag or exact version resolves the package name +back to the tracked plugin record and records the new spec for future updates. +Passing the package name without a version moves an exact pinned install back to +the registry's default release line. If the installed npm plugin already matches +the resolved version and recorded artifact identity, OpenClaw skips the update +without downloading, reinstalling, or rewriting config. `--pin` is npm-only. It is not supported with `--marketplace`, because marketplace installs persist marketplace source metadata instead of an npm spec.