3 months ago
I have downloaded github cli repo (unzipped) to D:\bin\cli-master folder.
I use cmd:
```D:\bin\cli-master>railway login
'railway' is not recognized as an internal or external command,
operable program or batch file.```
what i am doing wrong?
Pinned Solution
3 months ago
Hey fuad47, I see what's going on from your screenshot, you downloaded the source code repo which needs to be compiled first. since you're trying to avoid Node.js v16+, the easier way is to just grab the pre-built executable.
go to https://github.com/railwayapp/cli/releases and download the actual Windows exe file - should be something like railway-v3.x.x-windows-amd64.exe if you're on 64-bit Windows. That's the ready-to-use program, not the source code you have now.
once you download it, just rename it to railway.exe and drop it in your D:\bin\ folder. Then you need to add that folder to your PATH so Windows can find it. Open cmd as admin and run:
setx PATH "%PATH%;D:\bin" /Mafter that close your command prompt, open a fresh one and try:
railway --version
railway loginshould work fine then
8 Replies
3 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
3 months ago
did you have a look to the docs?
https://docs.railway.com/guides/cli
why don't you just use npm?
fra
did you have a look to the docs?https://docs.railway.com/guides/cliwhy don't you just use npm?
3 months ago
This requires version =>16 of Node.js. I prefer that way.
3 months ago
Hey fuad47, I see what's going on from your screenshot, you downloaded the source code repo which needs to be compiled first. since you're trying to avoid Node.js v16+, the easier way is to just grab the pre-built executable.
go to https://github.com/railwayapp/cli/releases and download the actual Windows exe file - should be something like railway-v3.x.x-windows-amd64.exe if you're on 64-bit Windows. That's the ready-to-use program, not the source code you have now.
once you download it, just rename it to railway.exe and drop it in your D:\bin\ folder. Then you need to add that folder to your PATH so Windows can find it. Open cmd as admin and run:
setx PATH "%PATH%;D:\bin" /Mafter that close your command prompt, open a fresh one and try:
railway --version
railway loginshould work fine then
3 months ago
There are several ways to install it I am free to choose preferred option.
fuad47
There are several ways to install it I am free to choose preferred option.
3 months ago
Hy fuad47, Did my answer help you fix the issue ?
Status changed to Solved noahd • 3 months ago
