Commands
Commands
np install
Install platform components (Nomad, Traefik, OpenObserve, podman). With --init, also scaffolds a project template.
# Install platform only
np install
# Install + init a new project
np install --init
# Auto-confirm
np -y installnp init
Initialize a new np project — creates np.yaml in the current directory.
np initnp deploy
Deploy a service defined in np.yaml.
# Deploy
np deploy my-app
# Dry-run — preview the Nomad job spec
np deploy my-app --dry-run
# Auto-confirm
np -y deploy my-appThe domain field
To expose a service via Traefik, just set domain — np generates all the Traefik labels for you:
services:
- name: api
type: container
source: my-app:v1
port: 8080
domain: api.my-app.com # ← that's itNo need to write Traefik labels by hand.
np status
Show cluster or service status.
# All services
np status
# One service
np status my-appnp logs
View logs for a service.
# All instances
np logs my-app
# Follow
np logs --follow my-appnp scale
Change the number of replicas.
np scale my-app 5np remove
Remove a service from the cluster.
np remove my-appnp doctor
Run diagnostics on the platform.
np doctornp help
Show all commands.
np help