muster restart
Restart a running service without rebuilding or redeploying it.
Synopsis
Terminal
muster restart <service> [flags]Description
muster uses the first method that applies:
| Method | When |
|---|---|
.muster/hooks/<svc>/restart.sh | Your own restart hook (or a justfile recipe). |
kubectl rollout restart deployment/<name> | Kubernetes services. |
docker compose restart <service> | Compose services. |
docker restart <container> | Docker services. |
| Redeploy | Anything else: runs muster deploy <svc>. |
Flags
| Flag | Description |
|---|---|
--json | Stream NDJSON events (start, log, done, health, summary). |
--yes | Approve a changed or unapproved restart hook without review. |
-h, --help | Show help. |
Examples
Terminal
muster restart api
muster restart api --json --yesExit codes and JSON
Exits 0 when the service restarted (and is healthy, if checked), 1 otherwise. JSON events: JSON API.