netlify db status command supports NETLIFY_DB_BRANCH
Introduced 2026-04-21 · score 0.91
HOW TO USE IT
When checking a repository’s selected database branch, run `netlify database status`; set `NETLIFY_DB_BRANCH` to select a branch when needed. The documentation confirms the status command, but does not document that environment variable.
netlify database statusWHY THIS HELPS
Check database status for a repository's selected database branch.
REQUIREMENTS AND LIMITATIONS
- Version: 25.1.0
- NETLIFY_DB_BRANCH: Not found in the official documentation checked; the release note says it selects the branch for `db status`.
FIRST-PARTY EVIDENCE
- https://github.com/netlify/cli/releases/tag/v25.1.0
- https://docs.netlify.com/build/data-and-storage/netlify-database/local-development/
Check the installed version and the source before using it. Entry JSON