Skip to content

cmd stop

github-actions[bot] edited this page Aug 25, 2026 · 3 revisions

nself stop

Gracefully shut down all services or specific named services.

Synopsis

nself stop [SERVICES...] [flags]

Alias: nself down

Description

nself stop shuts down the ɳSelf stack gracefully. By default it sends SIGTERM to running containers and waits for them to exit cleanly before running docker compose down. The graceful shutdown timeout is 30 seconds by default and can be adjusted with --graceful.

You can stop specific services by passing their names as positional arguments. When stopping individual services, only those containers are affected, the rest of the stack remains running.

Data is always preserved. Volumes are only removed when --volumes is explicitly passed (this is destructive and will delete your database and all stored data). When --volumes or --rmi is set, the graceful stop phase is skipped for speed.

Flags

Flag Default Description
--graceful 30 Graceful shutdown timeout in seconds
--no-monorepo false Disable automatic monorepo backend detection
--remove-images false Alias for --rmi
--remove-orphans false Remove orphaned containers
--rmi false Remove Docker images
--verbose false Show detailed output
--volumes, -v false Remove volumes (WARNING: deletes data)
--help, -h Show help

Examples

# Stop all services gracefully
nself stop

# Using the alias
nself down

# Stop only specific services
nself stop postgres redis

# Stop and remove volumes (destroys all data)
nself stop --volumes

# Stop and remove Docker images
nself stop --rmi

# Clean up orphaned containers
nself stop --remove-orphans

# Extended graceful shutdown timeout
nself stop --graceful 60

See Also

Commands | Home

Home


Getting Started


Commands


Features


Configuration


Plugins (87 + 10 monitoring)

Free (25)
Pro (62)
Planned (26)
  • plugin-audit
  • plugin-blog
  • plugin-checkout
  • plugin-commerce
  • plugin-drm
  • plugin-export
  • plugin-flow
  • plugin-import
  • plugin-ldap
  • plugin-mailgun
  • plugin-media
  • plugin-oauth-providers
  • plugin-pages
  • plugin-postmark
  • plugin-rate-limit
  • plugin-reports
  • plugin-saml
  • plugin-scheduler
  • plugin-sendgrid
  • plugin-sso
  • plugin-subscription
  • plugin-thumb
  • plugin-transcoder
  • plugin-twilio
  • plugin-waf
  • plugin-watermark

Guides


Architecture


Reference


Licensing


Security


Brand


Operations


Contributing


Admin


Changelog


All commands (52)

Clone this wiki locally