Supabase CLI is the official command-line tool for the Supabase platform — an open-source Firebase alternative built on Postgres. It enables full local development with supabase init and supabase start, which spins up a complete Supabase stack (Postgres, Auth, Storage, Realtime, Edge Functions) via Docker.
For AI agents, the CLI’s strongest asset is supabase gen types typescript, which generates TypeScript types directly from the database schema — giving agents accurate type context when writing queries or building API layers. Agents can also run supabase db diff to auto-generate migration SQL from schema changes, and supabase db push to apply migrations to remote projects.
Other agent-relevant capabilities include managing Edge Functions (supabase functions new, supabase functions deploy), inspecting database health (supabase inspect db), seeding data (supabase db seed), and linking to remote projects (supabase link). The CLI outputs structured information that agents can parse to manage infrastructure-as-code workflows.