Skip to content
Caution

Update the local CLI and restart right away

Installs the latest OpenClaw CLI and then reloads the gateway so the newer version starts running.

npm i -g openclaw@latest
openclaw gateway restart || openclaw restart
Update and restartMacLinux

What it does

Installs the latest OpenClaw CLI and then reloads the gateway so the newer version starts running.

When to use it

Use it when a local install needs an update and you want the new CLI to take effect immediately after installation.

What happens next

npm updates the global package first, then OpenClaw restarts the gateway using the compatible fallback pattern.

Risk warning

Caution. It both changes the installed version and restarts the service, so do not run it on Docker or VPS flows that use different upgrade steps.

Related guides