تخطَّ إلى المحتوى

nself restart

هذا المحتوى غير متوفر بلغتك بعد.

Smart restart with config change detection.

nself restart [SERVICES...] [flags]

nself restart restarts the ɳSelf stack with intelligent change detection. In the default smart mode, it compares .env and docker-compose.yml modification times against container start times. Only services whose configuration has changed are rebuilt and restarted, services with no config changes get a quick docker compose restart instead of a full rebuild.

For a full stop-and-start cycle (e.g., after major config changes or to clear runtime state), use --all. This performs a complete nself stop followed by �P1� start.

You can restart a single service by passing its name as a positional argument. This is useful for recovering an unhealthy container without disrupting the rest of the stack.

FlagDefaultDescription
--smart, -strueDetect changes, only restart affected services (default)
--all, -afalseFull restart: stop all + start all
--skip-buildfalseSkip image rebuild
--no-buildfalseAlias for --skip-build
--verbose, -vfalseDetailed output
--help, -hnoneShow help
Terminal window
# Smart restart, only rebuilds what changed
nself restart
# Restart a single service
nself restart postgres
# Full stop + start cycle
nself restart --all
# Restart without rebuilding images
nself restart --no-build
# Restart multiple specific services
nself restart hasura auth

Commands | Home