Railway CLI token
shubhankartrivedi
HOBBYOP

2 years ago

So this token will only work on the selected Environment or any on the project?

This is project level token btw.

Closed

8 Replies

shubhankartrivedi
HOBBYOP

2 years ago

N/A


2 years ago

please see this docs section -


shubhankartrivedi
HOBBYOP

2 years ago

@Brody

I just wanna know if I can do

railway environment development

on CI/CD pipeline when I got a Project token ENV.


shubhankartrivedi
HOBBYOP

2 years ago

i was confused if the environment selection here will just allow that environment only


shubhankartrivedi
HOBBYOP

2 years ago

and also, is this cmd valid?:

railway up --service ${RAILWAY_SERVICE_ID} --environment development -d

Will this push to the mentioned environment?


2 years ago

when using a project token you can not change the environment via the CLI.

you would need to use an account token instead.


2 years ago

not sure, check the help printout for that command


shubhankartrivedi
HOBBYOP

2 years ago

okay


Welcome!

Sign in to your Railway account to join the conversation.

Loading...