Stop all nSelf services. Hidden alias for nself stop, kept so muscle memory from Docker Compose workflows still works.
Alias notice. nself down is identical to nself stop. New scripts should use nself stop. nself down is hidden from nself help but will not be removed.
# Stop all services (same as nself stop)
nself down
# Stop and remove volumes (destructive — use with care)
nself down --volumesnself down [FLAGS]nself down stops all containers in the active nSelf stack by running the equivalent of docker compose down against the CLI-managed compose file. Networks are removed. Volumes are preserved by default (use --volumes to also remove them, which is destructive for databases).
This command only stops the services defined in the current environment's generated compose file. Custom services registered as CS_N slots are also stopped. Plugins that launched companion processes have those processes cleaned up.
To stop a single service instead of all services, use nself service stop <name>. To stop and immediately restart, use nself restart.
| Flag | Type | Default | Description |
|---|---|---|---|
--volumes, -v | bool | false | Also remove Docker volumes (destroys database data) |
--timeout | int | 30 | Seconds to wait for graceful shutdown before force-killing |
--env | string | current | Stop services for a specific environment |
nself down
# Stopping nself-postgres-1 ... done
# Stopping nself-hasura-1 ... done
# Stopping nself-auth-1 ... done
# Stopping nself-nginx-1 ... done
# Removing networks# WARNING: destroys all database data in volumes
nself down --volumesnself service stop postgresnself down && nself start0 — all services stopped cleanly1 — one or more services failed to stop within the timeout2 — no active stack found for the current environment