blitz icon indicating copy to clipboard operation
blitz copied to clipboard

Improve CLI version check

Open beerose opened this issue 3 years ago • 1 comments

The current output: CleanShot_2022-07-19_at_11 53 262x

  • [ ] We shouldn't suggest upgrading to latest if someone is using stable
  • [ ] The current version is missing
  • [ ] Consider printing info about version mismatch (e.g. "you're using blitz v 54, auth v50")

blitz -v output:

Blitz version: 2.0.0-alpha.55 (global)
Blitz version: 2.0.0-alpha.55 (local)
macOS Monterey | darwin-arm64 | Node: v16.15.0


 Package manager: npm

  System:
    OS: macOS 12.2
    CPU: (10) arm64 Apple M1 Pro
    Memory: 944.30 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.15.0 - /opt/homebrew/opt/node@16/bin/node
    Yarn: 1.22.18 - ~/.volta/bin/yarn
    npm: 8.5.5 - /opt/homebrew/opt/node@16/bin/npm
  npmPackages:
    @blitzjs/auth: 2.0.0-alpha.55 => 2.0.0-alpha.55 
    @blitzjs/next: 2.0.0-alpha.55 => 2.0.0-alpha.55 
    @blitzjs/rpc: 2.0.0-alpha.55 => 2.0.0-alpha.55 
    @prisma/client: 3.9.0 => 3.9.0 
    blitz: 2.0.0-alpha.55 => 2.0.0-alpha.55 
    next: 12.2.0 => 12.2.0 
    prisma: 4.0.0 => 4.0.0 
    react: 18.0.0 => 18.0.0 
    react-dom: 18.0.0 => 18.0.0 
    typescript: ^4.5.3 => 4.7.4 

beerose avatar Jul 19 '22 10:07 beerose

As reference https://github.com/blitz-js/blitz/issues/3625

itsdillon avatar Aug 04 '22 20:08 itsdillon