supabase db advisors checks database security and performance
Introduced 2026-03-17 · score 0.98
HOW TO USE IT
When checking a Supabase database for security and performance issues, run `supabase db advisors`. To target a specific database, add `--db-url <percent-encoded-connection-string>`; the command defaults to the local database.
supabase db advisorssupabase db advisors --db-url <percent-encoded-connection-string>WHY THIS HELPS
Check a Supabase database for security and performance issues during repository maintenance.
REQUIREMENTS AND LIMITATIONS
- Version: v2.81.0
- --db-url <string>: Connection string for the database to check; it must be percent-encoded. Mutually exclusive with `--linked` and `--local`.
- --local: Check the local database; this is the default target.
- --linked: Check the linked project; requires CLI login and a linked project reference.
- --type <all|security|performance>: Choose advisor checks by type.
- --level <info|warn|error>: Set the minimum issue level to display.
- --fail-on <none|info|warn|error>: Set the issue level that causes a non-zero exit status.
- Prerequisite: Use Supabase CLI v2.81.0 or later for this command, introduced in v2.81.0.
- Prerequisite: For `--db-url`, provide a percent-encoded database connection string.
- Prerequisite: For `--linked`, authenticate with `supabase login` and have a linked project reference.
FIRST-PARTY EVIDENCE
- https://github.com/supabase/cli/releases/tag/v2.81.0
- https://github.com/supabase/cli/blob/v2.81.0/cmd/db.go
Check the installed version and the source before using it. Entry JSON