Skip to content

Commit

Permalink
Mention Node 10 in README + add --watch + improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Jan 17, 2020
1 parent 1920356 commit 855950e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 11 additions & 5 deletions cli/prisma2/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Prisma Framework CLI

Prisma Framework CLI, see [https://github.com/prisma/prisma2](https://github.com/prisma/prisma2)

## Installation

The Prisma Framework CLI currently requires [Node 8](https://nodejs.org/en/download/releases/) (or higher).
The Prisma Framework CLI currently requires [Node.js 10](https://nodejs.org/en/download/releases/) (or higher).

### npm

Expand All @@ -26,20 +28,24 @@ Sets up a new Prisma project via an interactive wizard.

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.

## Lift
## Migrate

### `prisma2 lift save`
### `prisma2 migrate save --experimental`

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

### `prisma2 lift up`
### `prisma2 migrate up --experimental`

Apply any migrations that have not been applied yet.

### `prisma2 lift down`
### `prisma2 migrate down --experimental`

Undo migrations.
6 changes: 3 additions & 3 deletions cli/prisma2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"repository": "git@github.com:prisma/prisma2-cli.git",
"author": "Tim Suchanek <suchanek@prisma.io>",
"license": "Apache-2.0",
"engines": {
"node": ">=10"
},
"files": [
"build",
"download-build",
Expand Down Expand Up @@ -77,8 +80,5 @@
"build": "pnpm run tsc && pnpm run ncc:download && rm -rf build && pnpm run ncc && sed -i.bak 's/env ts-node/env node/g' 'build/index.js' && rm -f build/index.js.bak && scripts/copy-runtime.sh",
"prepublishOnly": "pnpm run download && pnpm run ncc:download && pnpm run install && pnpm run test && pnpm run build",
"pkg": "pkg . -o pkg-build"
},
"engines": {
"node": ">=10.0.0"
}
}

0 comments on commit 855950e

Please sign in to comment.