-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Command, format } from '@prisma/cli' | ||
import chalk from 'chalk' | ||
|
||
export class Dev implements Command { | ||
static new(): Dev { | ||
return new Dev() | ||
} | ||
private constructor() {} | ||
async parse(argv: string[]) { | ||
return format(` | ||
${chalk.redBright('Prisma CLI does not include a \`dev\` command any more right now.')} | ||
If you want to run Prisma Studio, use ${chalk.green('prisma2 studio')}. | ||
If you want to generate the Prisma Client, use ${chalk.green('prisma2 generate')} (or ${chalk.green('prisma2 generate --watch')}) | ||
If you want to update your schema, use ${chalk.green('prisma2 introspect')}. | ||
If you want to migrate your database, use ${chalk.green('prisma2 migrate')}. | ||
`) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters