Supabase CLI helps you manage your Supabase projects from your computer easily. It lets you create, develop, and deploy your backend without using the website.
0
0
Supabase CLI setup
Introduction
You want to create a new Supabase project from your terminal.
You need to run your Supabase database locally for testing.
You want to deploy changes to your Supabase backend quickly.
You prefer working with command line tools instead of a web interface.
Syntax
Supabase
npm install -g supabase supabase login supabase init supabase start supabase stop
npm install -g supabase installs the Supabase CLI globally on your computer.
Use supabase login to connect your CLI with your Supabase account.
Examples
Installs the Supabase CLI globally so you can use it anywhere in your terminal.
Supabase
npm install -g supabase
Logs you into your Supabase account to access your projects.
Supabase
supabase login
Sets up a new Supabase project folder with necessary files.
Supabase
supabase init
Starts a local Supabase development environment on your computer.
Supabase
supabase start
Sample Program
This sequence installs the CLI, logs you in, creates a new project folder, and starts the local Supabase environment for development.
Supabase
npm install -g supabase supabase login supabase init supabase start
OutputSuccess
Important Notes
Make sure you have Node.js and npm installed before installing the Supabase CLI.
Use supabase stop to stop the local development environment when done.
Keep your CLI updated by running npm update -g supabase regularly.
Summary
Supabase CLI lets you manage your backend from the terminal.
Install it with npm, then login and initialize your project.
Start and stop your local Supabase environment easily for testing.