New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

prisma2

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prisma2

Learn more about Prisma 2 in the [docs](https://github.com/prisma/prisma2).

2.0.0-alpha.863
Version published
Weekly downloads
83
-67.19%
Maintainers
1
Weekly downloads
 
Created

Prisma 2 CLI

Learn more about Prisma 2 in the docs.

Getting started

Check out the "Getting Started"-guide to get started with Prisma 2.

Installation

The Prisma 2 CLI currently requires Node.js 10 (or higher).

npm

npm install -g prisma2

Yarn

yarn global add prisma2

General

prisma2 init

Sets up a prisma/schema.prisma file in the current directory.

prisma2 generate

Invokes the generators specified in the Prisma project file.

prisma2 generate --watch

Watches the Prisma project file and runs generate when the file changes.

prisma2 introspect

Introspects the database and generates a data model from it.

Migrate

prisma2 migrate save --experimental

Creates a new migration folder based on current data model changes.

prisma2 migrate up --experimental

Apply any migrations that have not been applied yet.

prisma2 migrate down --experimental

Undo migrations.

FAQs

Package last updated on 05 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts