Skip to main content

Supabase from the command line

Postgres projects, SQL, migrations and functions. GBrain gives Supabase, and every other connector you add, a command line.

Get Personal, $49 a month

One price for one person: Supabase and every other connector GBrain offers, from a terminal or any AI. Cancel any time.

Install the GBrain command line, then connect Supabase

Supabase is connected on its own sign-in page, in the browser. A key or a sign-in never passes through the terminal.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

# Every Supabase command, once Supabase is connected
gbrainio tool help supabase

What GBrain can do with Supabase

Supabase is a Postgres development platform with auth, storage and functions. Connected to a workspace, GBrain can answer a question with a query, apply a migration to a branch, or check the security advisor for missing policies.

  • Manage projects and branches
  • Run SQL queries
  • Apply migrations
  • Read logs, advisors and Edge Functions
gbrainio
gbrainio tool supabasePostgres projects, SQL, migrations and functions.USAGE  gbrainio tool supabase <command> [arguments]COMMANDS  search-docs                Search the Supabase documentation using GraphQL  list-organizations         Lists all organizations that the user is a member…  get-organization           Gets details for an organization  list-projects              Lists all Supabase projects for the user  get-project                Gets details for a Supabase project  get-cost                   Gets the cost of creating a new project or branch  confirm-cost               Ask the user to confirm their understanding of the…  create-project             Creates a new Supabase project  pause-project              Pauses a Supabase project  restore-project            Restores a Supabase project  list-tables                Lists all tables in one or more schemas  list-extensions            Lists all extensions in the database  list-migrations            Lists all migrations in the database  apply-migration            Applies a migration to the database  execute-sql                Executes raw SQL in the Postgres database  query-logs                 Runs a custom read-only ClickHouse SQL query again…  get-advisors               Gets a list of advisory notices for the Supabase p…  get-project-url  get-publishable-keys  generate-typescript-types  Generates TypeScript types for a project  list-edge-functions        Lists all Edge Functions in a Supabase project  get-edge-function          Retrieves file contents for an Edge Function in a…  deploy-edge-function       Deploys an Edge Function to a Supabase project  create-branch              Creates a development branch on a Supabase project  list-branches              Lists all development branches of a Supabase proje…  delete-branch              Deletes a development branch  merge-branch               Merges migrations and edge functions from a develo…  reset-branch               Resets migrations of a development branch  rebase-branch              Rebases a development branch on production  open                       Open its page in the browserLEARN MORE  gbrainio tool supabase <command> -h  What one command takes  https://gbrain.io/docs/tools         The manual
Every command Supabase's own server lists, each in its own words.

Supabase's own server lists these commands, and the CLI prints this page for them once Supabase is connected.

What a terminal may do with Supabase, and what GBrain keeps

Off or On, for each terminal

Each terminal reaches Supabase at the level set for it in the browser: Off, or On, which is every command Supabase's server lists. A terminal reads its level and never raises it.

1,000 actions a day for each command

Each of Supabase's commands stops at 1,000 actions a day on the account it reaches, whichever terminal or AI asks, and starts again at midnight UTC. Only that command stops.

Every action on one record

Each command a terminal runs on Supabase is a row on GBrain's activity log: which terminal, which account, what it did and whether it was allowed, refusals included. gbrainio activity ls --tool supabase reads it back.

From a terminal, Claude Code or Codex

gbrainio tool help supabase says what Supabase is and what each of its commands does, and gbrainio tool ls lists them with everything else the terminal can run. Claude Code and Codex run the same commands, at the same level, on the same record.

From Supabase

GBrain reaches Supabase at its own server, mcp.supabase.com. On Supabase's own pages: its website, how the connection works, its terms of service and its privacy policy.

The GBrain Tools command line works with every other connector GBrain offers, each with a page like this one.

Every connector's command line

Supabase from a terminal, with GBrain Personal

Personal is $49 a month for one person. Connect Supabase in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.