Loading...
Loading...
Use this skill when you need to restart or upgrade MoviePilot. This skill covers system restart, version check, and manual upgrade procedures.
npx skill4agent add jxxghp/moviepilot moviepilot-updateAll script paths are relative to this skill file.
# Using moviepilot-api skill
python scripts/mp-api.py GET /api/v1/system/restartcurl -X GET "http://localhost:3000/api/v1/system/restart" \
-H "X-API-KEY: <YOUR_API_TOKEN>"docker restart moviepilotpython scripts/mp-api.py GET /api/v1/system/versions# Check current version
cat /app/version.pyMOVIEPILOT_AUTO_UPDATE# Edit docker-compose.yml, add environment variable:
environment:
- MOVIEPILOT_AUTO_UPDATE=release # or "dev" for dev版本
# Then restart
docker-compose down && docker-compose up -ddocker stop moviepilot
docker rm moviepilot
docker run -d ... -e MOVIEPILOT_AUTO_UPDATE=release jxxghp/moviepilot/usr/local/bin/mp_update.sh/app/docker/update.shcurl -s https://api.github.com/repos/jxxghp/MoviePilot/releases | grep '"tag_name"' | grep "v2" | head -1# Replace v2.x.x with actual version
curl -L -o /tmp/backend.zip https://github.com/jxxghp/MoviePilot/archive/refs/tags/v2.x.x.zip
unzip -d /tmp/backend /tmp/backend.zip# Backup current installation
cp -r /app /app_backup
# Replace files (exclude config and plugins)
cp -r /tmp/backend/MoviePilot-*/* /app/# Use API or docker restart
python scripts/mp-api.py GET /api/v1/system/restartgit pullpip install -U moviepilot| Issue | Solution |
|---|---|
| Restart fails | Check if Docker daemon is running; verify container has restart policy |
| Update fails | Check network connectivity to GitHub; ensure sufficient disk space |
| Version unchanged | Verify |
| Dependency errors | May need to rebuild virtual environment: |
| Variable | Value | Description |
|---|---|---|
| | Auto-update to latest stable release |
| | Auto-update to latest dev version |
| | Disable auto-update (default) |
| (token) | GitHub token for higher rate limits |
| (url) | GitHub proxy URL for China users |
| (url) | Global proxy host |