Redocly / Redocly/redocly-cli

auto detect package manager to suggest update

Open
#2,011 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

p3 Type: Idea
Dominant language
TypeScript
Stars
1.5k
Forks
228
Avg merge
1d 14h
Merged PRs (30d)
48

Description

Is your feature request related to a problem? Please describe.

󰀵  󱑍 10:19   warp-multi-sidebars    main !?+15 via  v22.13.0   9s 
 ➜  redocly preview

    ╔═══════════════════════════════════════════════════════╗
    ║                                                       ║
    ║  A new version of Redocly CLI (1.33.1) is available.  ║
    ║  Update now: `npm i -g @redocly/cli@latest`.          ║
    ║  Changelog: https://redocly.com/docs/cli/changelog/   ║
    ║                                                       ║
    ╚═══════════════════════════════════════════════════════╝

Describe the solution you'd like

maybe use which redocly to identify it

 ➜  which redocly                      
/Users/imbios/Library/pnpm/redocly

then update the recommendation to use the correct package manager

Describe alternatives you've considered

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by locating the CLI's available-version notification and reproduce it with a command installed through pnpm, then compare the detected installation path with the suggested update command. Done means the notification recommends the package manager that installed the CLI, including the npm example shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.