Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 3.65 KB

cli-commands.md

File metadata and controls

56 lines (45 loc) · 3.65 KB

How to use the terminal commands

Index

Commands

Title Purpose
T3: Create Project Creates a new project using the T3 Stack / NextJS / Vite CLI
T3: Prisma DB Execute Execute native commands to your database
T3: Prisma DB Pull Pull the state from the database to the Prisma schema using introspection
T3: Prisma DB Push Push the state from your Prisma schema to your database
T3: Prisma DB Seed Seed your database
T3: Prisma Format Format a Prisma schema
T3: Prisma Generate Generate artifacts
T3: Prisma Init Set up a new Prisma project
T3: Prisma Migrate Deploy Apply pending migrations to update the database schema in production/staging
T3: Prisma Migrate Dev Create a migration from changes in Prisma schema
T3: Prisma Migrate Reset Reset your database and apply all migrations, all data will be lost
T3: Prisma Migrate Status Check the status of your database migrations
T3: Prisma Studio Browse your data with Prisma Studio
T3: Prisma Validate Validate a Prisma schema
T3: Drizzle Generate Generate migrations based on you Drizzle schema
T3: Drizzle Pull Pull DDL from existing database
T3: Drizzle Push Push your schema changes directly to the database
T3: Drizzle Drop Delete previously generated migrations from migrations folder
T3: Drizzle Up Utility command to keep all metadata up to date
T3: Drizzle Check It's a very powerful tool for you to check consistency of your migrations
T3: Drizzle Studio Launch Drizzle Studio database browser locally from you config file
T3: Start Server Builds and serves your application, rebuilding on file changes

Usage

commands

menu-prisma

Settings

In the .vscode/settings.json file, copy and paste the following settings:

{
  "nextjs.server.turbo": true,
  "nextjs.server.experimentalHttps": true,
}
  • nextjs.server.turbo: Turbo mode is a new mode that enables incremental compilation and dramatically improves the startup time of Next.js development servers. It's only available in Next.js 14 or newer.
  • nextjs.server.experimentalHttps: Enable HTTPS for the NextJS server. This is an experimental feature and it's only available in Next.js 14 or newer. You can read more about it here.