0
0
Supabasecloud~30 mins

Supabase CLI setup - Mini Project: Build & Apply

Choose your learning style9 modes available
Supabase CLI setup
📖 Scenario: You want to start a new Supabase project on your local machine to develop and test your database and API before deploying it to the cloud.
🎯 Goal: Set up the Supabase CLI locally, initialize a new Supabase project, and configure it for local development.
📋 What You'll Learn
Install Supabase CLI
Initialize a new Supabase project folder
Configure the Supabase project with default settings
Start the local Supabase development environment
💡 Why This Matters
🌍 Real World
Developers use the Supabase CLI to build and test backend services locally before deploying to production, speeding up development and reducing errors.
💼 Career
Knowing how to set up and use Supabase CLI is valuable for backend developers, cloud engineers, and full-stack developers working with modern open-source backend platforms.
Progress0 / 4 steps
1
Install Supabase CLI
Install the Supabase CLI by running the command npm install -g supabase in your terminal.
Supabase
Hint

Use npm to install the Supabase CLI globally so you can use the supabase command anywhere.

2
Initialize a new Supabase project
Create a new folder called supabase-project and run supabase init inside it to initialize the Supabase project.
Supabase
Hint

Use mkdir to create the folder, cd to enter it, then run supabase init to set up the project.

3
Configure Supabase project
Inside the supabase-project folder, open the supabase/config.toml file and set the project_id to local for local development.
Supabase
Hint

Open the config file and set project_id to local so Supabase knows this is a local project.

4
Start local Supabase development environment
Run supabase start inside the supabase-project folder to launch the local Supabase services.
Supabase
Hint

Use supabase start to run the local database and API services for development.