Proposal: Move `prisma2` CLI into `@prisma/cli` npm package
See original GitHub issueWe’re considering moving the prisma2 CLI from the prisma2 npm package into @prisma/cli similar to how ionic, Angular and vue are doing it.
Note that you’ll still invoke the CLI via the prisma2 command. For a global installation, this would be the upgrade flow:
$ npm uninstall -g prisma2
$ npm install -g @prisma/cli
# Invoke the new CLI from the new package:
$ prisma2 --help
Note that we’re planning to change the prisma2 command to prisma upon the upcoming Prisma 2.0 launch.
Pros
• Clearer package naming (“you know what you get”)
• Easier to distinguish versions of individual packages
• More consistent: Unifying Prisma’s tools under the @prisma npm scope
Cons
• Another breaking change
• Easier to find/remember/understand when CLI package name and command are identical (e.g. netlify-cli npm package and netlify CLI command is one additional thing to remember)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:16
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Move prisma2 CLI into @prisma/cli npm package #1548
We're considering moving the prisma2 CLI from the prisma2 npm package into @prisma/cli similar to how ionic, Angular and vue are doing it....
Read more >Prisma CLI Installation (Reference)
The Prisma CLI is typically installed as a development dependency, that's why the --save-dev (npm) and --dev (Yarn) options are used in the...
Read more >@prisma/cli - npm
Creates a new migration folder based on current data model changes. prisma migrate up --experimental. Apply any migrations that have not been ......
Read more >Getting Started with Next.js and Prisma - Ryan Chenkie, Lee ...
Next.js offers a unique approach to building client-side React apps by allowing portions of your React codebase to actually run on the ...
Read more >Creating a Node.js GraphQL server using Prisma 2
npm install -g @prisma/cli yarn global add @prisma/cli ... To generate the package.json file without prompts, run the following command:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

As we also own
prisma, we could in theory makenpx prisma(the last case, that does not work fornpx vue) work and tell the use to use the correct command once (and uninstall theprismapackage again (or even to it semi automatically in the postinstall). But that would still be confusing, because after adding the local@prisma/clidependency, the same command that just told them to do someething would then be the valid command to use the CLI.I know that everything is in development phase right now, but I would really consider to think the most about those things in the beginning. For the newcomers and the community itself is not best to change regularly names of those things. Take example of Photon and Lift, it was strongly communicated and now it is renamed. For my viewpoint it makes harder to wrap your head around prisma2 to keep updated to those late updates.