Commands
Commands
np init
Initialize np on this machine. Sets up Nomad, Consul, Traefik, and OpenObserve.
np initnp deploy
Deploy a service defined in np.yaml.
# Deploy from current directory
np deploy my-app
# Deploy with auto-confirm
np -y deploy my-appnp status
Show all running services.
# All services
np status
# One service
np status my-appOutput:
[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:8080np logs
View logs for a service.
# All instances
np logs my-app
# Follow
np logs -f my-appnp scale
Change the number of replicas.
np scale my-app --count 5np stop
Stop a service.
np stop my-appNext: Architecture →