Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

railway upgrade command #236

Open
JakeCooper opened this issue Jun 26, 2022 · 3 comments
Open

railway upgrade command #236

JakeCooper opened this issue Jun 26, 2022 · 3 comments
Labels
feature request Proposed feature for the CLI

Comments

@JakeCooper
Copy link
Contributor

JakeCooper commented Jun 26, 2022

CleanShot 2022-06-26 at 14 37 26@2x

We should be able to detect if installed via homebrew, npm, yarn or other, and provide an upgrade command for railway

@nebulatgs
Copy link
Contributor

Ideally we should be able to upgrade even if installed via the install script, similar to how deno upgrade works.

cchalop1 added a commit to cchalop1/cli that referenced this issue Jul 10, 2022
@Milo123459 Milo123459 changed the title Railway upgrade command railway upgrade command Mar 5, 2023
@Milo123459 Milo123459 added the enhancement New feature or request label Mar 5, 2023
@coffee-cup coffee-cup added feature request Proposed feature for the CLI and removed enhancement New feature or request labels Apr 26, 2023
@alexng353
Copy link
Contributor

alexng353 commented Jul 10, 2023

Here's how yarn does it: yarnpkg/yarn@6db39cf/src/cli/commands/install.js#L90-L124 yarnpkg/yarn@6db39cf/src/util/yarn-version.js

image

I read the code a little bit and they actually store the installation method in yarn's package.json file. If cli does that at installation time this is definitely possible without doing copious amounts of starship-esque command spamming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Proposed feature for the CLI
Projects
None yet
Development

No branches or pull requests

6 participants