MCPcopy
hub / github.com/prisma/prisma / printUsage

Function printUsage

scripts/run-studio.ts:7–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import { Studio } from '../packages/cli/src/Studio'
6
7function printUsage(): void {
8 console.error(`Usage:
9 STUDIO_DATABASE_URL='<postgres-url>' pnpm exec tsx scripts/run-studio.ts
10 pnpm exec tsx scripts/run-studio.ts '<postgres-url>' [port] [browser]
11
12Environment variables:
13 STUDIO_DATABASE_URL Database URL to connect Studio to
14 STUDIO_PORT Port to bind to (default: 5555)
15 STUDIO_BROWSER Browser to launch (default: none)
16`)
17}
18
19async function main(): Promise<void> {
20 const url = process.env.STUDIO_DATABASE_URL ?? process.argv[2]

Callers 1

mainFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected