Supabase CLI purpose and limitations
What the Supabase CLI is and does
The Supabase CLI is a command-line tool for local development, migrations, type generation and function deploys.
It runs on your machine, reads files in your repository, and pushes the result to a hosted Supabase project, much as you might commit a change that a workflow tool like Activepieces later picks up.

It's not a hosted API with models, keys per call or per-unit pricing.
The drawing below shows both shapes. On the left, migration files on a laptop are pushed to a hosted project; on the right is the metered API with a key, which the CLI is not.
Take from it that the thing you version and review is the folder of files, not a remote service you call.
When a team treats the right-hand picture as the left, most production trouble follows.
CLI versus Management API versus project API
If you came looking for an API, you probably want one of the other two interfaces. The Management API controls projects and settings over HTTP, and the project API serves your own data.

| Interface | What it acts on | How you authenticate |
|---|---|---|
| CLI | Your local files and linked project | Log in, or set an access token in CI |
| Management API | Project and organization settings | Access token as a bearer credential |
| Project API | Your tables and data | The project's API keys |
If a plain script or a workflow tool needs to change project settings, the Management API is the route. If you need to change schema, the CLI's migration files are the route, because they leave a reviewable history.
Before you copy a flag into a pipeline, run the CLI's built-in help for your installed version, because the CLI changes between releases. Command names and behavior here were checked against the Supabase documentation on 2026-12-06.
Everything below works on Activepieces' free plan. Start without code or a credit card.
Install commands for macOS, Linux and Windows
Install the CLI per project through npm or system-wide through a package manager, then check the version it reports, because that version decides which flags your pipeline can use.
The npm route pins the version inside the repository, which is one reason CI may prefer it. The table below lists each route with its install and verify commands.
| Route | Install command | Verify command | Caveat |
|---|---|---|---|
| macOS Homebrew | brew install supabase/tap/supabase |
supabase --version |
Installs from the Supabase tap, not the default Homebrew formulae |
| Windows Scoop | scoop bucket add supabase https://github.com/supabase/scoop-bucket.git then scoop install supabase |
supabase --version |
Add the bucket first or the install finds nothing |
| npm/npx dev dependency | npm install supabase --save-dev |
npx supabase --version |
Global npm install -g is not supported |
| Linux .deb | sudo dpkg -i <file>.deb |
supabase --version |
Package is 62.9-63.6 MB, downloaded from the GitHub releases page |
| Linux .rpm | sudo rpm -i <file>.rpm |
supabase --version |
Package is 62.4-62.9 MB, downloaded from the GitHub releases page |
At roughly 63 MB per Linux package, a runner that downloads one on every job spends time and bandwidth you can save by caching it or using the npm route.
On macOS, run the tap install from the table. Homebrew owns upgrades, so updating means brew upgrade supabase, and nothing in your repository records which version a teammate has.
On Linux, download the .deb or .rpm that matches your distribution from the CLI's GitHub releases page, then install it with dpkg or rpm. Because you fetch the file by hand, script the download in CI instead of relying on someone's laptop.
On Windows, add the Supabase bucket once, then install. Skipping the bucket step is the usual reason the install reports that no package was found.
Run the verify command after every install and log its output in CI. For npm, update with npm update supabase, and commit the lockfile so every machine runs the same build.
Supabase CLI login, access tokens and plan limits
You are not billed per CLI request. Every machine running the same build still has to authenticate with a personal access token, either from a browser login or from SUPABASE_ACCESS_TOKEN in CI.
Supabase CLI browser login versus access token
On a laptop, supabase login opens a browser, you approve the session, and the CLI stores a token locally. That token belongs to you, so anything it can reach, you can reach.
In CI there is no browser, so you generate an access token in your account settings, store it as a secret, and expose it as SUPABASE_ACCESS_TOKEN.
Use a token created for the pipeline, not one copied from a developer's machine. When that person leaves, you don't want deployments failing because their credentials were revoked.
Linking a project
Once you are logged in, the CLI still doesn't know which project to act on; linking tells it. The order matters, and skipping the last step is how a wrong-project push gets through:

- Run
supabase login, or setSUPABASE_ACCESS_TOKENin the CI environment. - Run
supabase link --project-ref <ref>, using the project reference from your dashboard. - Enter the database password when prompted.
- Confirm the link by running a first command, such as
supabase migration list, and check that the remote column matches what you expect.
That first command is your proof that the link points where you think it does. After it succeeds, the link is local state, so each fresh CI runner repeats the steps.
Supabase CLI on free and paid plans
Running supabase db push ten times costs nothing extra on its own. Plans limit your project's resources, not your use of the CLI; what a plan constrains is the project you push to.
The exact allowances change, so read the current pricing page before you rely on one, and recheck it when a project grows. Treat any number you saw in a blog post as stale.
Plans limit your project's resources, not your use of the CLI; what a plan constrains is the project you push to.
The ten Supabase CLI commands used most
Rely on commands rather than numbers, because commands age better. They fall into three groups: the local stack, migrations, and types, functions and secrets. The table shows each one's target and whether it destroys anything.
| Command | What it does | Target | Destructive |
|---|---|---|---|
supabase init |
Creates supabase/config.toml |
Local | No |
supabase start |
Starts the local containers | Local | No |
supabase status |
Prints local URLs and keys | Local | No |
supabase stop |
Stops the containers | Local | No |
supabase link --project-ref <ref> |
Ties the folder to a hosted project | Remote | No |
supabase db pull |
Writes remote schema into a migration file | Remote to local | No |
supabase db diff -f <name> |
Generates a migration from local changes | Local | No |
supabase db push |
Applies pending migrations | Remote | Only if the SQL is |
supabase migration new <name> |
Creates an empty timestamped file | Local | No |
supabase db reset |
Rebuilds the local database from migrations and seed | Local | Yes |
supabase gen types typescript --local |
Prints types from the schema | Local | No |
supabase functions deploy <name> |
Uploads an Edge Function | Remote | Replaces the deployed version |
supabase secrets set NAME=value |
Stores a function secret | Remote | Overwrites the same name |
Nothing here is destructive by surprise except db reset, and it only touches your laptop. Remote commands run exactly the SQL you committed.
init creates config.toml, where ports and auth settings live. After start, run status to get the local API URL and keys instead of copying them from a dashboard.
Run link once, then db pull to capture the existing schema. Make changes locally, run db diff -f add_orders, review the file, and run db reset to prove it replays cleanly.
db push then applies it remotely. In CI, set SUPABASE_ACCESS_TOKEN and SUPABASE_DB_PASSWORD so link and push never prompt.
To keep types in step with migrations, run supabase gen types typescript --local > types.ts. Set secrets before functions deploy, because a function that reads a missing secret fails at request time, not at deploy.
Easier to see it running than to read about it: set it up free, no card.
Supabase CLI errors in production and their fixes
When the local machine and the remote project disagree about state, the CLI fails: a stopped daemon, a stale token, a migration table that doesn't match your files. Secrets are one case of that, and the rest follow the same pattern.
supabase start fails when Docker isn't running or another process already holds one of its ports. Start Docker, or stop the process on that port, then run it again.
Left alone, the failure repeats in CI, where a runner without Docker never gets a local stack to test against.
In a pipeline, supabase link breaks on a missing access token even though it worked on your laptop. Run supabase login locally, and set SUPABASE_ACCESS_TOKEN in CI.
A wrong database password fails supabase db push the same way, so supply SUPABASE_DB_PASSWORD explicitly instead of relying on a prompt nobody will answer.
Supabase CLI migration history mismatch and drift
If someone edited the remote schema in the dashboard, db push stops on a history mismatch. Run supabase db pull to capture the drift as a migration.
Where the history table itself is wrong, supabase migration repair with --status applied or --status reverted realigns it. Run it only after confirming what the remote really contains, or you mark unapplied SQL as done.
Checked against Supabase's documentation in December 2026, the connection ceilings are listed below as direct connections and pooler clients:
| Plan | Direct connections | Pooler clients |
|---|---|---|
| Nano | 60 | 200 |
| Small | 90 | 400 |
| Large | 160 | 800 |
| 2XL | 380 | 1500 |
| 4XL | 480 | 3000 |
| 16XL | 500 | 12000 |
On Nano, a few parallel CI jobs can exhaust the direct limit. Direct connections grow more slowly past 2XL, while pooler capacity keeps climbing. Serverless functions and CI jobs should therefore use the pooler, and only migrations should connect directly.

Supabase CLI in CI and scheduled jobs
Run the CLI in CI by installing it with the official supabase/setup-cli action, then linking and pushing migrations to staging before production. Migrations are the one job that needs the direct database connection, so the pipeline is where that connection should live.
A GitHub Actions pipeline
Run the steps below in this order, and each production push follows a staging push that has already passed checks.
- Check out the repository.
- Install the CLI with the
supabase/setup-cliaction. - Run
supabase linkagainst staging, using secrets. - Run
supabase db pushto apply migrations to staging. - Run your checks against staging.
- After a reviewer approves, link to production and run
supabase db push.
Because production only runs after approval, a migration that breaks on staging never reaches it.
| Repeatability | Secret handling | Rollback | |
|---|---|---|---|
| GitHub Actions | Same steps every run | Repository and environment secrets | Forward migration through the pipeline |
| Another CI system | Same, if the install step is pinned | Its own secret store | Forward migration through the pipeline |
| Manual terminal | Depends on who runs it | Tokens in a shell history or dotfile | Forward migration, applied by hand |
There is no automatic undo in any of the three, so a rollback is a new migration that reverses the change.
Store SUPABASE_ACCESS_TOKEN and SUPABASE_DB_PASSWORD as secrets, and keep staging and production values in separate GitHub environments. Put the approval requirement on the production environment, so the gate lives in configuration rather than in someone's memory.
Drift between the live schema and your application types gets caught before a deploy does if a scheduled workflow runs supabase gen types and opens a pull request when the generated file changes. Nobody has to remember to regenerate them.
Activepieces around the Supabase CLI
Don't expect Activepieces, whose core is MIT-licensed, to replace the Supabase CLI; the CLI keeps owning migrations and deploys, and Activepieces picks up the jobs around them that nobody wants to script by hand.

Drawing that line matters because the failures this article describes came from asking one tool to be the other.
When a workflow builder edits schema outside your migration history, the drift problem is back. When a CLI script also pages the on-call and updates a spreadsheet, it becomes something only one person dares to touch.
Supabase integration for no-code database jobs
For data tasks that sit beside the schema rather than inside it, the Supabase integration, one of the 751 in the Activepieces open source monorepo, works on database rows without code.
Think of inserting a row when a form arrives, or looking up a record to enrich a ticket.
Keep it away from DDL. Table and column changes stay in migration files, run by the CLI in CI, so your history remains the single record of the schema.
Activepieces also covers the notification gap. A workflow can receive a webhook from your CI job and post the deploy result to chat, so a failed db push is seen by the team in minutes instead of sitting in a log nobody opened.
Flows are unlimited on every plan, including free, so one per pipeline costs nothing extra.
Supabase MCP server for AI coding agents
The Activepieces flows around your deploys can get the same review as the migrations beside them: they sync to git and move from a test environment to production through Release Management, both part of the Ultimate plan.
Separate projects and environments make that promotion a deliberate step instead of a stray click on publish, which a builder that only exists as a hosted UI can't offer without undermining its own lock-in.
Git Sync and Release Management are in the Activepieces documentation, and they describe the same product whether you self-host it or use the cloud. MoneyGram, Moneypenny, Alan and FundingSocieties run Activepieces in production, and the MCP server for coding agents is served from either deployment.

Treat the MCP server as a way to reach surrounding apps. Migrations should still go through reviewed files and the CLI, not through an agent improvising schema changes.
Do these first; each item closes a gap this article described.
- Pin the CLI version in CI: so a silent upgrade can't change how migrations run.
- Store the access token and database password as CI secrets, never in the repository.
- Check that the migration history on the remote matches the files in your repo.
- Post deploy results to chat through a webhook-triggered workflow.
- Review which Supabase integration flows exist, and remove any that touch schema.
Frequently asked questions
Once the workflow is running, these questions come up, and each answer is short because the body already covers the mechanics.
Does the Supabase CLI cost money? No. The CLI itself is free and open source, so installing it and running migrations locally costs nothing.
What you pay for is the hosted project it links to, which is billed under your Supabase plan. A deploy from CI therefore costs you whatever the target project's plan costs, not a per-command fee.
Can I use the Supabase CLI without Docker?
Not for the local stack. supabase start runs Postgres, auth and storage as containers, so it needs a container runtime.
Commands that only talk to a hosted project, such as linking and pushing migrations, don't need that stack running. A CI job that only pushes can skip it, but any job that tests migrations against a fresh local database can't.
How do I update the Supabase CLI?
Update it the same way you installed it. If a package manager put it on your machine, use that package manager's upgrade command. If CI installs it, pin the version in the workflow and change the pin deliberately.
An unpinned install means a pipeline that passed yesterday can behave differently today, and you'll spend an afternoon working out why.
Does the Supabase CLI have an API key?
Not in the sense of a key tied to the tool. The CLI authenticates as you, through a login or an access token you generate in your account and supply as an environment variable in CI.
Your project's own API keys are a separate thing, used by your application. Keep the two apart: the access token lets a pipeline manage projects, and the project keys let an app read and write data.



