• 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
  • Global Configuration
    • Environment Variables
    • Feature Flags
  • Server Actions
    • Sending CSRF Token to Actions
    • Server Actions Error Handling
  • The Makerkit SDK
    • User SDK
    • Organization SDK
    • Organization Subscription SDK
    • Data Loader SDK
  • Architecture and Folder Structure
    • Structure your Application
    • Data Model
    • Commands
    • Code Style
    • Translations and Locales
    • Sending Emails
    • Validating API payload with Zod
    • Logging
    • Enable CORS
    • Encrypting Secrets
    • User Roles
This documentation is for a legacy version of Next.js and Supabase. For the latest version, please visit the Next.js and Supabase V2 documentation

All the commands to use for your Makerkit app | Next.js Supabase

Use these commands to run the development server, build the application, and more in your Next.js Supabase application

Here are all the commands defined in the MakerKit's template:

Run the development server

Run the command:

text
npm run dev

Build a production bundle

Run the command:

text
npm build

Start a production server

Run the command after building the application with the build command:

text
npm start

This is optional as it is automatically called after the build command.

Format all the files

Run the command:

text
npm run format

Type checking

Run the command:

text
npm run typecheck

Linting

Run the command:

text
npm run lint

Start the Supabase Local Environment

Run the command:

text
npm run supabase:start

This is needed during development. It requires Docker to be up and running.

Stopping the Supabase Local Environment

Run the command:

text
npm run supabase:stop

Reset the Supabase Local Environment Database

Run the command:

text
npm run supabase:db:reset

Running the Supabase Database Tests

Run the command:

text
npm run test:db

Running and resetting the Supabase Database Tests

Run the command:

text
npm run test:reset:db

Run Cypress for E2E Tests (with UI)

Run the command:

text
npm run cypress

Run Cypress for E2E Tests (Headless)

Run the command:

text
npm run cypress:headless

Run E2E Tests and Exit

Run the command:

text
npm test:e2e

Run the Local Stripe Webhooks Server

This is needed if you are testing Stripe. This command requires Docker, but you can alternatively install Stripe on your OS and change the command to use stripe directly.

Run the command:

text
npm run stripe:listen