CLI
Logs
View and follow application logs from the terminal.
Recent logs
nextune app logs my-apiDefault: last 100 lines.
Options
| Flag | Description |
|---|---|
-t, --tail N | Number of recent lines (default: 100) |
--search TEXT | Filter lines containing text |
--level LEVEL | Minimum level: ALL, INFO, WARN, ERROR, etc. |
-f, --follow | Stream new logs live |
--json | JSON log lines |
Examples
# Last 200 lines
nextune app logs my-api --tail 200
# Errors only
nextune app logs my-api --level ERROR
# Search for "timeout"
nextune app logs my-api --search timeout
# Follow live (Ctrl+C to stop)
nextune app logs my-api --followSave logs to a file
nextune app logs my-api --follow > my-api.log
# or
nextune app logs my-api --follow | tee my-api.logNotes
- Log output is formatted for readability and does not include internal pod names by default.
- Live follow uses a WebSocket connection; snapshot mode uses the REST API.