Socket
Socket
Sign inDemoInstall

prisma2

Package Overview
Dependencies
0
Maintainers
1
Versions
1100
Alerts
File Explorer

Advanced tools

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).


Version published
Weekly downloads
940
increased by5.62%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Last updated on 26 Mar 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc