AptlyStar

Railway

Manage Railway projects, services, deployments, and variables

Nutzungsanweisungen

Integrate Railway into workflows to list projects, manage services and environments, monitor deployments, trigger and roll back service deployments, and manage environment variables.

Tools

railway_list_projects

List Railway projects visible to the provided token

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
workspaceIdstringNeinWorkspace ID to list projects from
firstnumberNeinMaximum number of projects to return
afterstringNeinCursor for pagination

Ausgabe

ParameterTypBeschreibung
projectsarrayRailway projects
↳ idstringProject ID
↳ namestringProject name
↳ descriptionstringProject description
↳ createdAtstringProject creation timestamp
↳ updatedAtstringProject update timestamp
pageInfoobjectPagination information
↳ hasNextPagebooleanWhether more projects are available
↳ endCursorstringCursor for the next page
countnumberNumber of projects returned

railway_get_project

Get a Railway project with its services and environments

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID

Ausgabe

ParameterTypBeschreibung
projectobjectProject with services and environments
↳ idstringProject ID
↳ namestringProject name
↳ descriptionstringProject description
↳ createdAtstringProject creation timestamp
↳ updatedAtstringProject update timestamp
↳ servicesarrayProject services
↳ idstringService ID
↳ namestringService name
↳ iconstringService icon
↳ environmentsarrayProject environments
↳ idstringEnvironment ID
↳ namestringEnvironment name

railway_create_project

Create a Railway project

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
namestringJaProject name
descriptionstringNeinProject description
workspaceIdstringNeinWorkspace ID to create the project in
isPublicbooleanNeinWhether the project should be publicly visible
defaultEnvironmentNamestringNeinName for the default environment
prDeploysbooleanNeinWhether to enable pull request deploys

Ausgabe

ParameterTypBeschreibung
projectobjectCreated project
↳ idstringProject ID
↳ namestringProject name

railway_update_project

Update a Railway project name or description

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID
namestringNeinUpdated project name
descriptionstringNeinUpdated project description
isPublicbooleanNeinWhether the project should be publicly visible
prDeploysbooleanNeinWhether to enable pull request deploy environments

Ausgabe

ParameterTypBeschreibung
projectobjectUpdated project
↳ idstringProject ID
↳ namestringProject name
↳ descriptionstringProject description

railway_delete_project

Delete a Railway project

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID

Ausgabe

ParameterTypBeschreibung
successbooleanWhether the project was deleted

railway_transfer_project

Transfer a Railway project to another workspace

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID
workspaceIdstringJaDestination workspace ID

Ausgabe

ParameterTypBeschreibung
successbooleanWhether the project was transferred

railway_list_project_members

List members for a Railway project

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID

Ausgabe

ParameterTypBeschreibung
membersarrayProject members
↳ idstringMember user ID
↳ rolestringProject role
↳ namestringMember name
↳ emailstringMember email
↳ avatarstringMember avatar URL
countnumberNumber of members returned

railway_create_environment

Create a Railway project environment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID
namestringJaEnvironment name
sourceEnvironmentIdstringNeinEnvironment ID to clone from
ephemeralbooleanNeinWhether the environment is ephemeral
skipInitialDeploysbooleanNeinWhether to skip initial deploys for the environment
stageInitialChangesbooleanNeinWhether to stage initial changes instead of applying them immediately

Ausgabe

ParameterTypBeschreibung
environmentobjectCreated environment
↳ idstringEnvironment ID
↳ namestringEnvironment name

railway_delete_environment

Delete a Railway project environment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
environmentIdstringJaRailway environment ID

Ausgabe

ParameterTypBeschreibung
successbooleanWhether the environment was deleted

railway_create_service

Create a Railway service from a GitHub repo or Docker image

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID
namestringJaService name
repostringNeinGitHub repository in owner/name format to deploy from
imagestringNeinDocker image to deploy, for example redis:7-alpine
branchstringNeinGit branch to deploy when using a repository source

Ausgabe

ParameterTypBeschreibung
serviceobjectCreated service
↳ idstringService ID
↳ namestringService name

railway_delete_service

Delete a Railway service and all of its deployments

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
serviceIdstringJaRailway service ID

Ausgabe

ParameterTypBeschreibung
successbooleanWhether the service was deleted

railway_list_deployments

List deployments for a Railway service in an environment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID
serviceIdstringJaRailway service ID
environmentIdstringJaRailway environment ID
firstnumberNeinMaximum number of deployments to return
afterstringNeinCursor for pagination

Ausgabe

ParameterTypBeschreibung
deploymentsarrayService deployments
↳ idstringDeployment ID
↳ statusstringDeployment status
↳ createdAtstringDeployment creation timestamp
↳ urlstringDeployment URL
↳ staticUrlstringStatic deployment URL
↳ canRollbackbooleanWhether this deployment can be rolled back to
↳ canRedeploybooleanWhether this deployment can be redeployed
countnumberNumber of deployments returned
pageInfoobjectPagination information
↳ hasNextPagebooleanWhether more deployments are available
↳ endCursorstringCursor for the next page

railway_get_deployment

Get details for a single Railway deployment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
deploymentIdstringJaRailway deployment ID

Ausgabe

ParameterTypBeschreibung
deploymentobjectDeployment details
↳ idstringDeployment ID
↳ statusstringDeployment status
↳ createdAtstringDeployment creation timestamp
↳ urlstringDeployment URL
↳ staticUrlstringStatic deployment URL
↳ canRollbackbooleanWhether the deployment can be rolled back to
↳ canRedeploybooleanWhether the deployment can be redeployed

railway_deploy_service

Trigger a deployment for a Railway service in an environment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
serviceIdstringJaRailway service ID
environmentIdstringJaRailway environment ID
commitShastringNeinSpecific Git commit SHA to deploy

Ausgabe

ParameterTypBeschreibung
deploymentIdstringCreated deployment ID

railway_restart_deployment

Restart a running Railway deployment without rebuilding

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
deploymentIdstringJaRailway deployment ID

Ausgabe

ParameterTypBeschreibung
successbooleanWhether the deployment was restarted

railway_rollback_deployment

Roll a Railway service back to a previous deployment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
deploymentIdstringJaRailway deployment ID to roll back to (must have canRollback)

Ausgabe

ParameterTypBeschreibung
successbooleanWhether the rollback was triggered

railway_get_deployment_logs

Retrieve runtime logs for a Railway deployment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
deploymentIdstringJaRailway deployment ID
limitnumberNeinMaximum number of log lines to return

Ausgabe

ParameterTypBeschreibung
logsarrayDeployment log entries
↳ timestampstringLog timestamp
↳ messagestringLog message
↳ severitystringLog severity
countnumberNumber of log entries returned

railway_list_variables

List Railway environment variables for a service or shared environment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID
environmentIdstringJaRailway environment ID
serviceIdstringNeinRailway service ID. Omit for shared environment variables.

Ausgabe

ParameterTypBeschreibung
variablesobjectVariable names and values
countnumberNumber of variables returned

railway_upsert_variable

Create or update a Railway environment variable

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID
environmentIdstringJaRailway environment ID
serviceIdstringNeinRailway service ID. Omit to create or update a shared variable.
namestringJaVariable name
valuestringJaVariable value
skipDeploysbooleanNeinWhether to skip automatic redeploys after changing the variable

Ausgabe

ParameterTypBeschreibung
successbooleanWhether the variable was created or updated

railway_delete_variable

Delete a Railway environment variable

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaRailway API token
tokenTypestringNeinRailway token type. Use "account" for account, workspace, or OAuth tokens, or "project" for project tokens.
projectIdstringJaRailway project ID
environmentIdstringJaRailway environment ID
namestringJaVariable name to delete
serviceIdstringNeinRailway service ID. Omit to delete a shared variable.

Ausgabe

ParameterTypBeschreibung
successbooleanWhether the variable was deleted

On this page