Getting Started
Getting Started
Install
# Install platform components (one command)
np install
# Or with auto-pilot (install + project scaffold)
np install --initAlternative: download the binary directly:
curl -Lo np https://github.com/np-run/np/releases/latest/download/np-linux-amd64
chmod +x np
sudo mv np /usr/local/bin/Your first project
np initThis creates np.yaml — the single file that defines your deployment:
# np.yaml
version: "1"
services:
- name: hello
type: container
source: nginx:alpine
port: 8080
domain: hello.my-app.com # optional: auto-generates Traefik routing
resources:
cpu: "100"
memory: "128"
replicas: 1Deploy
np deploy helloPreview without deploying:
np deploy hello --dry-runCheck status
# All services
np status
# One service
np status helloScale
np scale hello 3View logs
# Snapshot
np logs hello
# Follow
np logs --follow helloRun diagnostics
np doctor