Skip to content
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 install

np init

Initialize a new np project — creates np.yaml in the current directory.

np init

np 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-app

The 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 it

No need to write Traefik labels by hand.

np status

Show cluster or service status.

# All services
np status

# One service
np status my-app

np logs

View logs for a service.

# All instances
np logs my-app

# Follow
np logs --follow my-app

np scale

Change the number of replicas.

np scale my-app 5

np remove

Remove a service from the cluster.

np remove my-app

np doctor

Run diagnostics on the platform.

np doctor

np help

Show all commands.

np help