Common Commands

Learn about the common commands you need to know to work with the Next.js Supabase Turbo Starter Kit.

Here are some common commands you'll need to know when working with the Next.js Supabase Turbo Starter Kit.

Note: You don't need these commands to kickstart your project, but it's useful to know they exist for when you need them.

Installing Dependencies

To install the dependencies, run the following command:

pnpm i

This command will install all the necessary dependencies for the project.

Starting the Development Server

Start the development server for the web application with:

pnpm run dev

Running Supabase CLI Commands

Supabase is installed in the apps/web folder. To run commands with the Supabase CLI, use:

pnpm run --filter web supabase <command>

For example, if Supabase documentation recommends a command like:

supabase db link

You would run:

pnpm run --filter web supabase db link

Starting Supabase

To start Supabase, run:

pnpm run supabase:web:start

This command starts the Supabase web server.

Starting Stripe

To test the billing system, start Stripe with:

pnpm run stripe:listen

This routes webhooks to your local machine.

Resetting Supabase

To reset the Supabase database, which is necessary when you update the schema or need a fresh start, run:

pnpm run supabase:web:reset

Generate Supabase Types

When you update the Supabase schema, generate the latest types for the client by running:

pnpm run supabase:web:typegen

This should be done every time the Supabase schema is updated.

Running Tests

To run the tests for the project, use:

pnpm run test

Cleaning the Project

To clean the project, run:

pnpm run clean:workspaces pnpm run clean

Then, reinstall the dependencies:

pnpm i

Type-Checking the Project

To type-check the project, use:

pnpm run typecheck

Linting the Project

To lint the project using ESLint, run:

pnpm run lint:fix

Formatting the Project

To format the project using Prettier, run:

pnpm run format:fix

These commands will help you manage and maintain your project efficiently.


Subscribe to our Newsletter
Get the latest updates about React, Remix, Next.js, Firebase, Supabase and Tailwind CSS