Skip to content
Commands

Commands

np init

Initialize np on this machine. Sets up Nomad, Consul, Traefik, and OpenObserve.

np init

np deploy

Deploy a service defined in np.yaml.

# Deploy from current directory
np deploy my-app

# Deploy with auto-confirm
np -y deploy my-app

np status

Show all running services.

# All services
np status

# One service
np status my-app

Output:

[OK] my-app               3/3 running, healthy
   * web-1     → http://10.0.0.5:8080
   * web-2     → http://10.0.0.6:8080
   * web-3     → http://10.0.0.7:8080

np logs

View logs for a service.

# All instances
np logs my-app

# Follow
np logs -f my-app

np scale

Change the number of replicas.

np scale my-app --count 5

np stop

Stop a service.

np stop my-app

Next: Architecture →