Generate project token from CLI
frank-embleton
PROOP

an hour ago

I would like the ability to generate a project token from the CLI, I do not see any way to do so currently.

There is a GraphQL mutation but it fails with a 401


   railway api \

     'mutation ($input: ProjectTokenCreateInput!) {

       projectTokenCreate(input: $input)

     }' \

     --variables '{

       "input": {

         "projectId": "PROJECT_ID",

         "environmentId": "ENVIRONMENT_ID",

         "name": "ci-token"

       }

     }'

Either allowing this or adding a dedicated command in the CLI would be helpful

Under Review

0 Threads mention this feature

0 Replies

Welcome!

Sign in to your Railway account to join the conversation.

Loading...