Get unlimited public & private packages + team-based management with npm Teams.Learn more »

prisma2

2.0.0-preview022 • Public • Published

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.

Keywords

none

Install

npm i prisma2

DownloadsWeekly Downloads

38,273

Version

2.0.0-preview022

License

Apache-2.0

Unpacked Size

14.2 MB

Total Files

393

Last publish

Collaborators

  • avatar