π¦ ClawHub
safe-update
by @hacksing
Update OpenClaw from source code. Supports custom project path and branch. Includes pulling latest branch, rebasing, building and installing, restarting serv...
π‘ Examples
# Update with defaults (will analyze and recommend)
./update.shUpdate specific branch
./update.sh --branch feat/my-branchForce merge mode
./update.sh --mode mergeForce rebase mode
./update.sh --mode rebaseDry run (preview only)
./update.sh --dry-runCustom project path
./update.sh --dir /opt/openclaw --branch main
βοΈ Configuration
Environment Variables (optional)
# Set custom project path
export OPENCLAW_PROJECT_DIR="/path/to/openclaw"Set custom branch (default: main)
export OPENCLAW_BRANCH="your-feature-branch"Enable dry-run mode (no actual changes)
export DRY_RUN="true"
Or Pass as Arguments
./update.sh --dir /path/to/openclaw --branch your-branch
π Tips & Best Practices
git push --forceTERMINAL
clawhub install safe-update