nkapp logs
Stream or snapshot logs from one or more project services. Logs are color-coded per service for easy scanning.
nkapp logs [services...] [options]Arguments
| Argument | Type | Description |
|---|---|---|
services | string[] | Optional service names to filter. If omitted, logs from all services are shown. |
Options
| Flag | Type | Default | Description |
|---|---|---|---|
-f, --follow | boolean | true | Stream logs in real-time |
-e, --env <env> | string | local | Target environment |
-t, --tail <n> | number | 100 | Number of historical lines to show |
Features
Multi-Service Multiplexing
When streaming from multiple services, each service gets a unique color prefix:
[web] Listening on port 3000
[api] Connected to database
[worker] Processing job #1234Remote Streaming
For remote environments, logs are streamed through the active provider’s SSH tunnel — no need to manually SSH into the server.
Examples
# Stream all service logs
nkapp logs
# Stream logs from a specific service
nkapp logs api
# Show last 50 lines without following
nkapp logs web --tail 50 --no-follow
# Stream staging logs
nkapp logs -e stage -f