Skip to Content
CLI Referencenkapp stop

nkapp stop

Stop running services without removing their containers. Stopped containers retain their state and can be restarted quickly.

nkapp stop [services...] [options]

Arguments

ArgumentTypeDescription
servicesstring[]Optional list of service names to stop. If omitted, stops all services.

Options

FlagTypeDefaultDescription
-e, --env <env>stringlocalTarget environment

Remote Support

For remote environments, Nanokit automatically establishes an SSH tunnel to the target host before issuing stop commands to the remote Docker daemon.


Examples

# Stop all services in local environment nkapp stop # Stop specific services nkapp stop api worker # Stop staging services nkapp stop -e stage

[!NOTE] Unlike nkapp destroy, stopped containers are not removed. Use nkapp up to restart them.