nb app logs

View app logs. npm/Git installations read pm2 logs; Docker installations read Docker container logs.

Usage

nb app logs [flags]

Parameters

ParameterTypeDescription
--env, -estringCLI env name to view logs for; uses the current env if omitted
--yes, -ybooleanWhen an explicitly passed --env targets a different env than the current env, skip the interactive confirmation prompt
--tailintegerNumber of recent log lines to show before following, default 100
--follow, -f / --no-followbooleanWhether to keep following new log output

Examples

nb app logs
nb app logs --env app1
nb app logs --env app1 --tail 200
nb app logs --env app1 --no-follow

If you explicitly pass --env and it differs from the current env, the CLI asks for confirmation first. In non-interactive terminals or AI agent sessions, add --yes yourself or run nb env use <name> first and try again.