Railway CLI Management
БесплатноБез исполняемых скриптовНе проверенDeploy, manage services, view logs, and configure Railway infrastructure. Use when deploying to Railway, managing environment variables, viewing deployment…
Об этом скилле
Railway CLI Management
Master Railway CLI for deployments, service management, log viewing, and infrastructure operations.
Quick Reference
Deployment
# Deploy current directory to linked service
railway up
# Deploy without attaching to logs
railway up --detach
# Deploy to specific service
railway up --service api
# Deploy to specific environment
railway up --environment production
# Redeploy latest deployment
railway redeploy
# Redeploy specific service
railway redeploy --service worker
# Skip confirmation
railway redeploy --yes
# Remove most recent deployment
railway down
# Remove deployment from specific service
railway down --service api
Service & Project Management
# List all projects
railway list
# Link to existing project (interactive)
railway link
# Link to specific project by ID
railway link <project-id>
# Show current project status
railway status
# Get status as JSON (includes deployment IDs!)
railway status --json
# Open project dashboard in browser
railway open
# Unlink current directory from project
railway unlink
# Link to specific service
railway service <service-name-or-id>
# Add new service to project
railway add
Getting Deployment IDs
Best Method:
# Get full project status including deployment IDs
railway status --json
# Extract specific deployment ID using jq
railway status --json | jq -r '.services.edges[0].node.serviceInstances.edges[0].node.latestDeployment.id'
# Get deployment ID for specific service
railway status --json | jq -r '.services.edges[] | select(.node.name=="api") | .node.serviceInstances.edges[0].node.latestDeployment.id'
Output Structure:
.services.edges[].node- Service info.node.serviceInstances.edges[].node.latestDeployment.id- Latest deployment UUID.node.serviceInstances.edges[].node.latestDeployment.meta- Commit info, build config, etc.
Logs
View Logs
# Stream logs for latest deployment
railway logs
# View logs for specific service
railway logs --service api
# View logs for specific environment
railway logs --environment production
# View deployment logs (startup/runtime)
railway logs --deployment
# View build logs
railway logs --build
# View logs for specific deployment by ID
railway logs <deployment-id>
# Get logs for specific service deployment
railway logs --service worker --deployment
# Output as JSON
railway logs --json
# Combine options
railway logs --service api --deployment --json
Logs Tips:
- Default: Shows latest deployment logs
- Deployment logs: Application startup and runtime output
- Build logs: Compilation, dependencies, Nixpacks output
- Use
--jsonwithjqfor filtering
Environment Variables
# List all variables for active environment
railway variables
# List for specific service
railway variables --service api
# List for specific environment
railway variables --environment production
# Show as key=value format
railway variables --kv
# Output as JSON
railway variables --json
# Set variable(s)
railway variables --set "DATABASE_URL=postgres://..."
# Set multiple
railway variables --set "NODE_ENV=production" --set "LOG_LEVEL=debug"
# Run local command with Railway variables
railway run npm start
# Open subshell with Railway variables loaded
railway shell
Environments
# Link to environment (interactive)
railway environment
# Link to specific environment
railway environment production
# Create new environment
railway environment new
# Delete environment
railway environment delete <environment-name>
Scaling
# Scale service in linked environment
railway scale --us-west1 3
# Scale specific service
railway scale --service api --us-west1 2
# Scale across multiple regions
railway scale --us-west1 2 --europe-west4 1
# Available regions:
# --us-west1, --us-west2, --us-east4
# --europe-west4, --asia-southeast1
Volumes
# List volumes
railway volume list
# List for specific service
railway volume list --service api
# Add new volume
railway volume add
# Delete volume
railway volume delete <volume-id>
# Update volume
railway volume update <volume-id>
# Detach volume from service
railway volume detach <volume-id>
# Attach volume to service
railway volume attach <volume-id>
Database Connection
# Connect to database shell
railway connect
# Examples:
# - PostgreSQL: Opens psql
# - MongoDB: Opens mongosh
# - MySQL: Opens mysql
# - Redis: Opens redis-cli
Authentication
# Login to Railway account
railway login
# Logout
railway logout
# Check current user
railway whoami
Common Workflows
Initial Project Setup
# Login
railway login
# Link to existing project
railway link
# Or create new project
railway init
# Link to service
railway service api
# Link to environment
railway environment production
# Check status
railway status
Deploy with Environment Variables
# Set va
Установить Railway CLI Management в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Railway CLI Management?
Deploy, manage services, view logs, and configure Railway infrastructure. Use when deploying to Railway, managing environment variables, viewing deployment logs, scaling services, or managing volumes.
Как установить скилл Railway CLI Management?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Railway CLI Management запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub