get-logs
Retrieve build or deployment logs for Railway projects by specifying deployment ID, service, and environment. Defaults to the latest deployment if no ID is provided.
Instructions
Get build or deployment logs for the currently linked Railway project. You can optionally specify a deployment ID, service, and environment. If no deployment ID is provided, it will get logs from the latest deployment.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deploymentId | No | Deployment ID to pull logs from. Omit to pull from latest deployment | |
environment | No | Environment to view logs from (defaults to linked environment) | |
logType | Yes | Type of logs to retrieve: 'build' for build logs or 'deploy' for deployment logs | |
service | No | Service to view logs from (defaults to linked service) | |
workspacePath | Yes | The path to the workspace to get logs from |