Skip to content

Commit

Permalink
fix help string
Browse files Browse the repository at this point in the history
Fix #1358

Fix #1359

Fix #1360
  • Loading branch information
timsuchanek committed Jan 17, 2020
1 parent 685c7c7 commit 9d572f8
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions cli/prisma2/src/CLI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,24 @@ export class CLI implements Command {
${chalk.bold('Commands')}
init Setup Prisma for your app
introspect Get the datamodel of your database
generate Generate Photon
init Setup Prisma for your app
introspect Get the datamodel of your database
generate Generate Prisma Client
${chalk.bold('Flags')}
--experimental Show and run experimental Prisma commands
--experimental Show and run experimental Prisma commands
${chalk.bold('Examples')}
Initialize files for a new Prisma project
${chalk.dim(`$`)} prisma2 init
Introspect an existing database
${chalk.dim(`$`)} prisma2 introspect --url "postgresql://localhost:5432/postgres"
Generate Prisma Client
${chalk.dim(`$`)} prisma2 generate
`)

// static help template
Expand All @@ -107,20 +113,27 @@ export class CLI implements Command {
${chalk.bold('Commands')}
init Setup Prisma for your app
introspect Get the datamodel of your database
generate Generate Photon
migrate Migrate your schema
init Setup Prisma for your app
introspect Get the datamodel of your database
generate Generate Prisma Client
migrate Migrate your schema ${chalk.dim('(experimental)')}
studio Run Prisma Studio ${chalk.dim('(experimental)')}
${chalk.bold('Flags')}
--experimental Show and run experimental Prisma commands
--experimental Show and run experimental Prisma commands
${chalk.bold('Examples')}
Initialize files for a new Prisma project
${chalk.dim(`$`)} prisma2 init
Introspect an existing database
${chalk.dim(`$`)} prisma2 introspect --url "postgresql://localhost:5432/postgres"
Generate Prisma Client
${chalk.dim(`$`)} prisma2 generate
Save your changes into a migration
${chalk.dim(`$`)} prisma2 migrate save --experimental
`)
Expand Down

0 comments on commit 9d572f8

Please sign in to comment.