• Blog
  • Documentation
  • Courses
  • Changelog
  • AI Starters
  • UI Kit
  • FAQ
  • Supamode
    New
  • Pricing

Launch your next SaaS in record time with Makerkit, a React SaaS Boilerplate for Next.js and Supabase.

Makerkit is a product of Makerkit Pte Ltd (registered in the Republic of Singapore)Company Registration No: 202407149CFor support or inquiries, please contact us

About
  • FAQ
  • Contact
  • Verify your Discord
  • Consultation
  • Open Source
  • Become an Affiliate
Product
  • Documentation
  • Blog
  • Changelog
  • UI Blocks
  • Figma UI Kit
  • AI SaaS Starters
License
  • Activate License
  • Upgrade License
  • Invite Member
Legal
  • Terms of License
    • Introduction
    • Technical Details
    • Conventions
    • Clone the Repository
    • Running the Project
    • Common Commands
    • Updating the Codebase
    • Navigating the Codebase
    • Walkthrough
    • Migrating from v1
    • Updating to Next.js 15
    • Updating to Tailwind CSS v4
    • Code Health and Testing
    • LLMs rules
    • FAQ

Common commands you need to know for the Next.js Supabase Turbo Starter Kit

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.

Commands

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

1

Install the dependencies

2

Start the development server

3

Run Supabase CLI commands

4

Start Supabase

5

Start Stripe (optional for billing system testing)

6

Diffing Supabase Shema

7

Reset Supabase

8

Generate Supabase Types

9

Run Tests

10

Clean the project

11

Type-check the project

12

Lint the project

13

Format the project

Installing Dependencies

To install the dependencies, run the following command:

bash
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:

bash
pnpm run dev

Running Supabase CLI Commands

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

bash
pnpm run --filter web supabase <command>

For example, if Supabase documentation recommends a command like:

bash
supabase link

You would run:

bash
pnpm run --filter web supabase link

Starting Supabase

To start Supabase, run:

bash
pnpm run supabase:web:start

This command starts the Supabase web server.

Starting Stripe

To test the billing system, start Stripe with:

bash
pnpm run stripe:listen

This routes webhooks to your local machine.

Diffing Supabase Shema

After creating a schema, you can diff it against the existing schema to create a new migration with:

bash
pnpm --filter web supabase:db:diff

To generate a new migration from the diff, run:

bash
pnpm --filter web supabase:db:diff -f <migration-name>

Please use a meaningful migration name, such as add-user-table.

Resetting Supabase

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

bash
pnpm run supabase:web:reset

Generate Supabase Types

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

bash
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:

bash
pnpm run test

Cleaning the Project

To clean the project, run:

bash
pnpm run clean:workspaces
pnpm run clean

Then, reinstall the dependencies:

bash
pnpm i

Type-Checking the Project

To type-check the project, use:

bash
pnpm run typecheck

Linting the Project

To lint the project using ESLint, run:

bash
pnpm run lint:fix

Formatting the Project

To format the project using Prettier, run:

bash
pnpm run format:fix

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

On this page
  1. Installing Dependencies
    1. Starting the Development Server
      1. Running Supabase CLI Commands
        1. Starting Supabase
          1. Starting Stripe
            1. Diffing Supabase Shema
              1. Resetting Supabase
                1. Generate Supabase Types
                  1. Running Tests
                    1. Cleaning the Project
                      1. Type-Checking the Project
                        1. Linting the Project
                          1. Formatting the Project