# ccp logs



{/* Generated by scripts/sync-cli-reference.ts */}

Print or follow an App's logs

```text
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 [#example]

```bash
ccp logs --follow
```

## Global options [#global-options]

Set `CCP_CONTEXT` to choose a named context. An explicit `--context` takes precedence. See [organization selection](/docs/ccp/organizations) for organization defaults.

| Argument  | Type or values | Default | Parser environment variable | Description                                         |
| --------- | -------------- | ------- | --------------------------- | --------------------------------------------------- |
| --context | text           | —       | —                           | Select a developer context from \~/.ccp/config.toml |
