@clawmover/cli
v0.1.3
Published
Backup, restore, and migrate OpenClaw data
Maintainers
Readme
@clawmover/cli
Command-line tool for backing up, restoring, and sanitizing OpenClaw data.
What It Does
- backs up the current OpenClaw environment to ClawMover-managed storage
- restores a backup onto a machine running OpenClaw
- supports simulated restore with
--dest-path - extracts sensitive values from
openclaw.jsonwithsanitize
Requirements
- Node.js 18+
- an OpenClaw installation on the machine
- a migration created at
https://clawmover.com - a paid migration order that provides an
instanceId
Installation
npm install -g @clawmover/cli
clawmover --versionHow instanceId Works
instanceId is provided after you:
- create a new migration at
https://clawmover.com - complete payment for that migration
You need that instanceId for backup and restore.
Commands
clawmover backupclawmover restoreclawmover sanitize
Backup
Basic command:
clawmover backup --instance-id <instanceId> --data-secret-key <dataSecretKey>Supported options:
--instance-id <id>--data-secret-key <key>--verification-code <code>--non-interactive--yes--verbose--log-level <level>
Recommended non-interactive flow:
Step 1:
clawmover backup --instance-id <instanceId> --data-secret-key <dataSecretKey> --non-interactive --yesThis sends a verification code by email and exits.
Step 2:
clawmover backup --instance-id <instanceId> --data-secret-key <dataSecretKey> --verification-code <code> --non-interactive --yesRestore
Basic command:
clawmover restore --instance-id <instanceId> --data-secret-key <dataSecretKey>Supported options:
--instance-id <id>--data-secret-key <key>--snapshot-id <id>--dest-path <path>--verification-code <code>--non-interactive--yes--verbose--log-level <level>
Prefer simulated restore first:
clawmover restore --instance-id <instanceId> --data-secret-key <dataSecretKey> --non-interactive --yes --dest-path <path>Then resume with the verification code:
clawmover restore --instance-id <instanceId> --data-secret-key <dataSecretKey> --verification-code <code> --non-interactive --yes --dest-path <path>Real restore omits --dest-path and may modify the local OpenClaw environment.
Sanitize
Use sanitize to extract sensitive values from an OpenClaw config and replace them with environment variable references.
Basic command:
clawmover sanitize --input <openclaw.json> --output <output-dir>OpenClaw Detection
The CLI reads the current OpenClaw config path from:
openclaw config fileIf OpenClaw is not installed or not initialized on the machine, backup and restore will fail.
License
MIT
