question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal: Move `prisma2` CLI into `@prisma/cli` npm package

See original GitHub issue

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.

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:closed
  • Created 4 years ago
  • Reactions:16
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
janpiocommented, Feb 12, 2020

As we also own prisma, we could in theory make npx prisma (the last case, that does not work for npx vue) work and tell the use to use the correct command once (and uninstall the prisma package again (or even to it semi automatically in the postinstall). But that would still be confusing, because after adding the local @prisma/cli dependency, the same command that just told them to do someething would then be the valid command to use the CLI.

3reactions
homokycommented, Feb 10, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found