forge logs
Stream logs for an app or job.
Command
forge logs <app|id> [--follow]
Arguments
| Name | Type | Required | Notes |
|---|---|---|---|
| `app | id` | string | yes |
Flags
| Flag | Type | Default | Notes |
|---|---|---|---|
| bool | | Follow mode (tail -f) |
| bool | | Short alias for --follow |
Examples
Stream current logs:
forge logs my-app
Follow mode:
forge logs deploy_xxxxx --follow
Errors
| Exit code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
Pitfalls
- Auto-detection — app slugs are auto-detected vs job IDs based on format.
- Follow mode — use
or--follow
to keep the log stream open for new entries.-f
See also
{auto-injected}
Tested against
{auto-injected}