Repository navigation
Open
Labels
bug/2-confirmedBug has been reproduced and confirmed.kind/bugA reported bug.status/needs-actiontech/typescriptIssue for tech TypeScript.topic: update-notifier
Milestone
Description
If you run prisma --foo you get output, but in the background no update check is triggered (confirmed that no file in checkpoint-nodejs cache is created). So if the non existence of this command was triggered by an outdated version, it would be super hard to find out as the next command also would not output an update notification.
Invalid commands
C:\Users\Jan\Documents
λ prisma --foo
! Unknown or unexpected option: --foo
Prisma is a modern DB toolkit to query, migrate and model your database (https://prisma.io)
Usage
$ prisma [command]
Commands
init Setup Prisma for your app
introspect Get the datamodel of your database
generate Generate artifacts (e.g. Prisma Client)
format Formats your schema
Flags
--experimental Show and run experimental Prisma commands
Examples
Setup a new Prisma project
$ prisma init
Introspect an existing database
$ prisma introspect
Generate artifacts (e.g. Prisma Client)
$ prisma generate
C:\Users\Jan\Documents
λ prisma generate --foo --bar
! Unknown or unexpected option: --foo
Generate artifacts (e.g. Prisma Client)
Usage
With an existing schema.prisma:
$ prisma generate
Or specify a schema:
$ prisma generate --schema=./schema.prisma'
Flags
--watch Watches the Prisma project file
Erroring Commands
λ npx prisma generate
Environment variables loaded from prisma\.env
Error:
You don't have any models defined in your schema.prisma, so nothing will be generated.
You can define a model like this:
model User {
id Int @id @default(autoincrement())
email String @unique
name String?
}
More information in our documentation:
https://pris.ly/d/prisma-schema
(Running generate on empty schema)
Metadata
Metadata
Assignees
Labels
bug/2-confirmedBug has been reproduced and confirmed.kind/bugA reported bug.status/needs-actiontech/typescriptIssue for tech TypeScript.topic: update-notifier
Activity
[-]Invalid commands do not trigger update check[/-][+]Invalid or erroring commands do not trigger update check[/+]pantharshit00 commentedon Aug 14, 2020
I can confirm both of the cases.
In both cases it didn't create a new file in the cache. Only after I ran a succeeding command it went ahead the created the cache.