Netlify CLI logs accept --deploy-id
Introduced 2026-09-04 · score 0.97
HOW TO USE IT
When inspecting a specific deploy, run `netlify logs --source deploy --deploy-id <deploy-id> --since 7d`; `<deploy-id>` is the deploy’s ID. The command can also target failed builds. [Netlify CLI v27.5.0 source](https://github.com/netlify/cli/blob/v27.5.0/src/commands/logs/index.ts)
netlify logs --source deploy --deploy-id <deploy-id> --since 7dnetlify logs --source functions --deploy-id <deploy-id>WHY THIS HELPS
Inspect logs for a specific deploy while debugging or reviewing a Netlify project.
BEFORE THIS CHANGE
The command documentation gives `netlify logs --source deploy --since 1h` for historical deploy logs without selecting a deploy ID.
REQUIREMENTS AND LIMITATIONS
- Version: v27.5.0
- --source <type...>: Select log sources; choices include `deploy`, `functions`, and `edge-functions`. Defaults to functions and edge-functions.
- --deploy-id <deploy-id>: Show logs for a specific deploy by ID, including failed builds. Can be used with all sources.
- --since <time>: Set the start of the historical log window; accepts a duration or ISO 8601 timestamp. Defaults to 10m.
FIRST-PARTY EVIDENCE
- https://github.com/netlify/cli/releases/tag/v27.5.0
- https://github.com/netlify/cli/blob/v27.5.0/src/commands/logs/index.ts
Check the installed version and the source before using it. Entry JSON