CLI reference
ccp logs
Print or follow an App's logs
Usage: ccp logs [OPTIONS] [APP_ID]| Argument | Type or values | Default | Parser environment variable | Description |
|---|---|---|---|---|
| --json | flag | false | — | Emit structured JSON on stdout |
| app_id | text | — | — | App ID (falls back to the active project config) |
| --app | text | — | — | Select the App explicitly by ID |
| --limit, -n | integer | 100 | — | Number of recent lines to print (default 100, max 1000) |
| --level | text | — | — | Filter by level(s), comma-separated: info,warn,error,debug |
| --deployment | text | — | — | Filter to a single deployment id |
| --follow, -f | flag | false | — | Follow: stream new log lines until Ctrl-C |
| --help, -h | flag | — | — | Print help |
Example
ccp logs --followGlobal options
Set CCP_CONTEXT to choose a named context. An explicit --context takes precedence. See organization selection for organization defaults.
| Argument | Type or values | Default | Parser environment variable | Description |
|---|---|---|---|---|
| --context | text | — | — | Select a developer context from ~/.ccp/config.toml |