GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Output path of current Prisma in `-v` · Issue #7771 · prisma/orm

Output path of current Prisma in -v  #7771

New issue
Copy link
New issue
Copy link
Closed
#29573
Closed
Output path of current Prisma in -v #7771
#29573
Copy link
Labels
kind/featureA request for a new feature.topic: clitopic: prisma versionCLI: prisma version or -v

Description

@janpio
janpio
opened on Jun 19, 2021
Issue body actions

Problem

This is a situation that can happen:

--- yarn prisma -v ---
warning package.json: No license field
prisma               : 2.26.0-dev.7
@prisma/client       : 2.26.0-dev.7
Current platform     : debian-openssl-1.1.x
Query Engine         : query-engine c838e79f39885bc8e1611849b1eb28b5bb5bc922 (at node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x)
Migration Engine     : migration-engine-cli c838e79f39885bc8e1611849b1eb28b5bb5bc922 (at node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core c838e79f39885bc8e1611849b1eb28b5bb5bc922 (at node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary        : prisma-fmt c838e79f39885bc8e1611849b1eb28b5bb5bc922 (at node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash : c838e79f39885bc8e1611849b1eb28b5bb5bc922
Studio               : 0.402.0
--- ls node_modules/@prisma/engines/ ---
ls: cannot access 'node_modules/@prisma/engines/': No such file or directory

As you can see yarn prisma -v tells us the engines comes from node_modules/@prisma/engines, but when you try to list that directory, it is actually not present.

What is happening here is that yarn prisma is actually from a few folders above our project. This is kinda visible when you look to not run yarn -s but just yarn:

codespace ➜ /workspaces/e2e-tests/platforms-serverless/firebase-functions (janpio-patch-5 ✗) $ yarn prisma -v
yarn run v1.22.10
warning package.json: No license field
$ /workspaces/e2e-tests/node_modules/.bin/prisma -v
prisma               : 2.25.0-dev.36
@prisma/client       : 2.25.0-dev.36
...

Suggested solution

Output the directory of where the executed prisma is from, either similar to Yarn the absolute path to the binary in node_modules, or the folder where the package.json that is responsible for the installation of Prisma comes from.

Alternatives

Rely on yarn itself to give that information. Will not work with npx unfortunately for example.

Activity

Next
  1. pantharshit00
    added
    kind/featureA request for a new feature.
    team/client
    topic: cli
    on Jun 20, 2021
  2. Jolg42
    added
    topic: prisma versionCLI: prisma version or -v
    on Dec 6, 2022
  3. algora-pbc
    added
    💎 Bounty
    on Sep 4, 2023
  4. janpio
    removed
    💎 Bounty
    on Jun 10, 2024
  5. FGoessler
    removed
    domain/client
    on Oct 7, 2025
  6. kartikbhardwaj1111 commented on Nov 19, 2025

    @kartikbhardwaj1111
    kartikbhardwaj1111
    on Nov 19, 2025 · Hidden as low-quality
    show commentMore actions
  7. quantbitrealmSimon commented on Feb 28, 2026

    @quantbitrealmSimon
    quantbitrealmSimon
    on Feb 28, 2026 · Hidden as low-quality
    show commentMore actions
  8. quantbitrealmSimon commented on Feb 28, 2026

    @quantbitrealmSimon
    quantbitrealmSimon
    on Feb 28, 2026 · Hidden as low-quality
    show commentMore actions
  9. quantbitrealmSimon
    added a commit that references this issue on Feb 28, 2026

    feat(cli): add Prisma CLI path to version output

    This issue will close once commit c5dd13d is merged into the 'main' branch.
    c5dd13d
  10. quantbitrealmSimon commented on Feb 28, 2026

    @quantbitrealmSimon
    quantbitrealmSimon
    on Feb 28, 2026
    More actions

    I've submitted a fix for this issue in PR #29275.

    The change adds a 'Prisma CLI Path' row to the version output, showing where the Prisma CLI is installed. This will help users debug cases where multiple installations exist (e.g., global vs local).

    Example output:

    prisma               : 7.5.0
    @prisma/client       : 7.5.0
    ...
    Studio               : 0.0.0
    Prisma CLI Path      : /path/to/node_modules/@prisma/cli
    
  11. Iceshen87
    added a commit that references this issue on Mar 5, 2026

    feat: add schema path to prisma -v output

    This issue will close once commit 2cfa589 is merged into the 'main' branch.
    2cfa589
  12. prisma
    deleted a comment from devnull37 on May 18, 2026
  13. prisma
    deleted a comment from adxptived on May 18, 2026
  14. 5 remaining items

  15. prisma
    deleted a comment from vishalbalani on May 18, 2026
  16. prisma
    deleted a comment from algora-pbc on May 18, 2026
  17. prisma
    deleted a comment from MAYANK-TRIPATH on May 18, 2026
  18. prisma
    deleted a comment from mnmt7 on May 18, 2026
  19. prisma
    deleted a comment from algora-pbc on May 18, 2026
  20. baronguyen001 commented on May 24, 2026

    @baronguyen001
    baronguyen001
    on May 24, 2026
    More actions

    Opened PR #29585 for this issue.

  21. jamilahmadzai commented on May 26, 2026

    @jamilahmadzai
    jamilahmadzai
    on May 26, 2026 · Hidden as low-quality
    show commentMore actions
  22. nagyminyo-cmyk commented on May 28, 2026

    @nagyminyo-cmyk
    nagyminyo-cmyk
    on May 28, 2026 · Hidden as low-quality
    show commentMore actions
  23. nagyminyo-cmyk
    added a commit that references this issue on May 28, 2026

    feat(cli): output binary path in prisma -v output

    This issue will close once commit 9e63a7f is merged into the 'main' branch.
    9e63a7f
  24. kitwongpixel commented on May 30, 2026

    @kitwongpixel
    kitwongpixel
    on May 30, 2026 · Hidden as low-quality
    show commentMore actions
  25. kitwongpixel commented on May 30, 2026

    @kitwongpixel
    kitwongpixel
    on May 30, 2026 · Hidden as low-quality
    show commentMore actions
  26. nagyminyo-cmyk
    added a commit that references this issue on Jul 19, 2026

    feat(cli): output binary path in prisma -v output

    This issue will close once commit bd24403 is merged into the 'main' branch.
    bd24403
  27. aqrln
    added a commit that references this issue on Jul 21, 2026

    feat(cli): show Prisma CLI path in version output (#29573)

    eba51ca
  28. aqrln
    closed this as completedin #29573on Jul 21, 2026
  29. lh0x00
    added a commit that references this issue on Aug 9, 2026

    feat(cli): show Prisma CLI path in version output (prisma#29573)

    6337207
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureA request for a new feature.topic: clitopic: prisma versionCLI: prisma version or -v

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.