Platform
CLI reference

ccp logs

View as Markdown

Print or follow an App's logs

Usage: ccp logs [OPTIONS] [APP_ID]
ArgumentType or valuesDefaultParser environment variableDescription
--jsonflagfalse—Emit structured JSON on stdout
app_idtext——App ID (falls back to the active project config)
--apptext——Select the App explicitly by ID
--limit, -ninteger100—Number of recent lines to print (default 100, max 1000)
--leveltext——Filter by level(s), comma-separated: info,warn,error,debug
--deploymenttext——Filter to a single deployment id
--follow, -fflagfalse—Follow: stream new log lines until Ctrl-C
--help, -hflag——Print help

Example

ccp logs --follow

Global options

Set CCP_CONTEXT to choose a named context. An explicit --context takes precedence. See organization selection for organization defaults.

ArgumentType or valuesDefaultParser environment variableDescription
--contexttext——Select a developer context from ~/.ccp/config.toml

On this page