Getting Started
Getting Started
Install
curl -fsSL https://np.run/install.sh | bashOr download the binary directly:
# Linux amd64
curl -Lo np https://github.com/np-run/np/releases/latest/download/np-linux-amd64
chmod +x np
sudo mv np /usr/local/bin/Initialize
np initThis creates np.yaml in your project directory — the single file that describes your deployment.
Your first deployment
# np.yaml
name: hello
binary: ./hello-server
health_check: /health
resources:
cpu: 100m
memory: 64mbnp deploy helloOutput:
Deploying hello (binary)
✅ Deployed hello (1 replica(s))
* hostname port 8080
✅ health check: http://127.0.0.1:8080/ → 200 OK
Tip: np status hello # check running state
np logs hello # view logsCheck status
np status[OK] hello 1/1 running, healthyScale
np scale hello --count 3View logs
np logs helloStop
np stop hello