Skip to content

Commit

Permalink
chore: new promo message in main help (#23918)
Browse files Browse the repository at this point in the history
  • Loading branch information
janpio committed Apr 22, 2024
1 parent cb7784e commit f73ba0f
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/cli/src/CLI.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ensureBinariesExist } from '@prisma/engines'
import type { Command, Commands } from '@prisma/internals'
import { arg, format, HelpError, isError, link, logger, unknownCommand } from '@prisma/internals'
import { arg, drawBox, format, HelpError, isError, link, logger, unknownCommand } from '@prisma/internals'
import { bold, dim, green, red, underline } from 'kleur/colors'

import { Version } from './Version'
Expand Down Expand Up @@ -89,6 +89,17 @@ export class CLI implements Command {
return CLI.help
}

private static tryPdpMessage = `Optimize performance through connection pooling and caching with Prisma Accelerate
and capture real-time events from your database with Prisma Pulse.
Learn more at ${link('https://pris.ly/cli/pdp')}`

private static boxedTryPdpMessage = drawBox({
height: this.tryPdpMessage.split('\n').length,
width: 0, // calculated automatically
str: this.tryPdpMessage,
horizontalPadding: 2,
})

private static help = format(`
${
process.platform === 'win32' ? '' : bold(green('◭ '))
Expand All @@ -115,6 +126,8 @@ export class CLI implements Command {
--preview-feature Run Preview Prisma commands
--help, -h Show additional information about a command
${this.boxedTryPdpMessage}
${bold('Examples')}
Set up a new Prisma project
Expand Down

0 comments on commit f73ba0f

Please sign in to comment.