Supabase:CLI
lastmod 2026-03-02created 2026-03-015 edits
Develop locally, deploy to the Supabase Platform, and set up CI/CD workflows.
Init/Start
The Supabase CLI enables you to run the entire Supabase stack locally, on your machine or in a CI environment. With just two commands, you can set up and start a new local project:
-
supabase login- You must log in first. -
supabase init- Initializes a local project. Creates thesupabase/config.tomlandsupabase/.gitignorefiles. -
supabase link- Links a Supabase project. -
supabase startto launch the Supabase services
New Function
Troubleshooting
Installing Supabase CLI as a global module is not supported
Install package: supabase@latest
npm warn deprecated [email protected]: Use your platform's native DOMException instead
npm error code 1
npm error path /home/zer0/.opm/var/n/opn-zer0-22.17.0-default/lib/node_modules/supabase
npm error command failed
npm error command sh -c node scripts/postinstall.js
npm error node:internal/modules/run_main:123
npm error triggerUncaughtException(
npm error ^
npm error Installing Supabase CLI as a global module is not supported.
npm error Please use one of the supported package managers: https://github.com/supabase/cli#install-the-cli
npm error
npm error (Use node --trace-uncaught ... to show where the exception was thrown)
npm error
npm error Node.js v22.17.0
npm error A complete log of this run can be found in: /home/zer0/.npm/_logs/2026-03-01T15_08_39_204Z-debug-0.log
The Supabase CLI no longer supports global installation with npm install -g. Instead, run it directly with npx:
See also
Favorite site
Pages that link here