100 Replies
Project ID:
N/A
Mind clarifying what command you're trying to run?
I want to link project with railway
the
railway link
command doesn't take any arguments, you simply run railway link
weird
Are you logged in on the CLI? ( have you ran
railway login
before? )Yes
I login cli and login railway
Sir please tell me what I do that this command will be run?
I’m unsure if it works in poweshell, can you try in a cmd window?
I try but there also no work
does it return any errors when you do it in cmd?
This is cmd
There also no work code
please run the command without arguments again
No work
please install the latest cli version
This run but after railway link no fun
I install latest version
please run the command in a regular cli window, not in vscode
if that doesn’t work, I’m not sure what the issue is. You’ll have to wait for someone who knows more about the cli to come by
Let me check
No work
Please tell me this is my very important project
Anyone here?
This is a community driven server so be patient, wait untill a member with CLI knowledge can help you and try re-reading the CLI docs and or reinstalling, u already got kicked yesterday for dm'ing random members so be respectful this time.
Anyone here
Do you have a team/workspace, project, and environment already created in your account on railway?
from the screenshot I can see you're trying to run it with the project id, try just typing in
railway link
it will proceed in interactive mode after it
'cause linking with a project id doesn't work for some reason even for meCMD open > Do what he said.
He is using powershell
link works in powershell just fine, it's just it exits if any arguments are provided
im thinking the same thing as grid, they might not have any projects in their dashboard
nah Brody, it's a cli bug
or poorly documented usecase
What is this id that he put in the cli then?
showing no error is the bug of course, but there is a root cause, and i think the root cause is no projects
Brody pls take a look at my screenshot
interesting
they have ran
railway link
without an id too💀
you thought you had me there
@malik if that's a new project, how about running
railway init
instead?Cmd in also not open
Sir I I'd put
I have big projects in node js
I was talking about in the railway dashboard, do you have projects there?
Sir I deploy code through vs code but code no run
what version of the cli are you using?
railway --version
Sir you see no command run
okay theres something wrong with vscode
open a separate cmd terminal and run that command
Cmd in also no run
show me please
Sir yesterday run but I don't know why today no work
open a separate cmd terminal and run that command
in a separate window, not inside vscode
vscode might be glitching or something
uninstall the railway cli
Now I npm file delete?
What command right that it will be uninstall
i dont know the npm command to do that off the top of my head, but im sure the answer can be found via your search engine of choice
I uninstalled
Now?
how have you uninstalled it
I uninstalled files from my computer
now run
echo railway
Run successful
well the you didn't uninstall it
screenshot please
try running
where railway
to get it's locationNow?
run the command madussa said please
Where railway?
yeah
not in powershell please
it will print path to the executable if system can find it
Now I install cli again?
not in power shell
use cmd
Now I think I install cli again ?
yes now install the cli again, in cmd
Install done
run
railway --version
run
where railway
Railway found
lets see
that would be the expected output from an npm install
this isnt looking like an issue with railway, it looks like an issue with your computer
Is there a reason why you keep going back to the cmd in vscode even though we've told you to use the separate program?
it seems to be an extra space when you wrote railway --version
i don't know if that affects on windows
Does that matter?
no it doesn't matter
Now Anyone tell me what I do it will be run
Start command prompt from outside of your editor.
It should not be a powershell.
I start command in cmd
Not in PowerShell
There also not work
i've tried a number of different things and I am not even remotely close to being able to reproduce this issue on two different computers lol
works in command prompt, works in powershell/powershell core, works in vscode terminal powershell and cmd
installed via npm - worked
installed via scoop - worked
works in both elevated and non-elevated in all as well
so as brody stated yesterday, it's likely an issue with your computer
I think vs code problem???
Bro my computer is ok
Or vs code settings problem??
if it is vscode problem, this is why multiple people have told you to try it in command prompt outside of vscode, which you said you did and it still did not work. so how could it be vscode?
Right
So now I reset my computer?
i can't say what you should or shouldn't do in terms of your computer, especially something like resetting. it might be worth it to try uninstalling the cli again, then installing it via scoop instead of npm
and doing this in command prompt or powershell outside of vscode
you definitely should restart your computer first though, if that’s what you meant. That’s always the first troubleshooting step I do