Prerequisites
Before installing the Supabase CLI, ensure you have:- Docker Desktop (or compatible container runtime) - Required for running Supabase locally
- Node.js 20+ (if using npm/npx method)
While the CLI can be installed via npm, it requires Node.js 20 or later. Older versions like Node.js 16 are not supported.
Installation Methods
- macOS
- Windows
- Linux
- npm/npx
Installing Docker
The Supabase CLI uses Docker containers to run the local development stack. Install Docker Desktop for your platform:- macOS
- Windows
- Linux
Docker Desktop for macOS
- Download Docker Desktop for Mac
- Install and start Docker Desktop
- Configure Docker settings:

- ✅ Use integrated virtualization framework
- ✅ Enable VirtioFS
- ✅ Use osxfs (legacy) file sharing
Alternative Container Runtimes
You can also use:- OrbStack - Lightweight Docker alternative for macOS
- Colima - Container runtime for macOS
- Rancher Desktop - Open-source Docker alternative
Post-Installation
Verify Docker Installation
Verify Docker is running:Verify Supabase CLI Installation
Check that the CLI is properly installed:First-Time Setup
The first time you runsupabase start, the CLI will download all necessary Docker images. This may take several minutes:
The initial download includes images for PostgreSQL, PostgREST, GoTrue, Kong, Realtime, Storage, and other services - approximately 2-3 GB total.
Updating the CLI
When to Update
Check for new releases on the Supabase CLI releases page. We recommend updating regularly to get the latest features and bug fixes.Update Process
Update the CLI using the same method you used to install it:- macOS (Homebrew)
- Windows (Scoop)
- Linux (Homebrew)
- npm
Important: Stop Containers Before Upgrading
Backup and stop running containers:Troubleshooting
Command not found: supabase
Command not found: supabase
macOS/Linux:
- Ensure Homebrew’s bin directory is in your PATH
- Restart your terminal
- Try running with full path:
/opt/homebrew/bin/supabase
- Ensure Scoop’s shims directory is in your PATH
- Restart PowerShell/Command Prompt
Docker not running
Docker not running
Error:
Cannot connect to the Docker daemonSolution:- Start Docker Desktop
- Verify Docker is running:
docker ps - On Linux, ensure your user is in the docker group:
sudo usermod -aG docker $USER
Node.js version too old
Node.js version too old
Error when using npx:
The Supabase CLI requires Node.js 20 or laterSolution:- Update Node.js to version 20 or later
- Use a different installation method (Homebrew, Scoop)
- Use a Node version manager like nvm
Port already in use
Port already in use
Error:
Port 54321 is already in useSolution:- Stop any services using ports 54321-54324
- Or configure custom ports in
supabase/config.toml
Next Steps
Local Development
Set up your local development environment
CLI Reference
Explore all CLI commands
Migrations
Learn database migration workflows
GitHub Actions
Set up CI/CD with GitHub Actions

