スキル一覧に戻る
lxfactorl

railway-expert

by lxfactorl

0🍴 0📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: railway-expert description: Complete toolset for Railway project management. Manage services, deployments, variables, and environments directly from the CLI. Use this skill to deploy apps, troubleshoot issues, view logs, and configure infrastructure without leaving the terminal. compatibility: Requires railway-cli

Railway Expert

Tools Overview

CategoryCommandsUse Case
Setupinit, link, login, logoutproject initialization and authentication
Servicesadd, service, domainManaging services and custom domains
Deployup, deploy, redeploy, downDeploying code and managing active deployments
Env VarsvariablesManaging environment variables and secrets
Observabilitylogs, statusMonitoring service health and build/deploy logs
EnvironmentsenvironmentCreating and deleting environments
Accessssh, run, shell, connectInteractive access to containers and databases

Common Workflows

1. Project Setup & Linking

Before working, ensure you are authenticated and linked to the correct project:

# Login to Railway
railway login

# Link via interactive menu or project ID
railway link

# Check what you are linked to
railway status

2. Deployment Management

Deploy code and manage versions:

# Deploy current directory
railway up

# Deploy to a specific service
railway up --service my-service

# Detach from build logs (fire and forget)
railway up -d

# Redeploy latest version (useful for restarting)
railway redeploy --service my-service

3. Variable Management

Configure secrets and settings:

# List all variables
railway variables

# Set multiple variables
railway variables --set "PORT=8080" --set "NODE_ENV=production"

# Get variables in JSON format
railway variables --json

4. Troubleshooting & Inspection

Diagnose issues in production:

# View deployment logs
railway logs

# View build logs (if deployment failed)
railway logs --build

# SSH into the running container
railway ssh

# Run a command in the environment context
railway run -- dotnet --info

5. Environment Management

Work with multiple environments (Production, Staging, etc.):

# Create a new environment
railway environment new staging

# Link local directory to staging
railway link --environment staging

# Delete an environment
railway environment delete dev-test

Best Practices

  • Use JSON Output: When parsing output in scripts, always use the --json flag (e.g., railway variables --json).
  • Service Scoping: Explicitly specify --service when working in a monorepo to avoid ambiguity.
  • Detached Deploys: Use railway up -d for CI pipelines to avoid hanging on log streaming.
  • Environment Context: Always verify your active environment with railway status before making destructive changes.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です