use-railway
Use Railway
Use Railway CLI from evidence, not memory.
Trigger boundary
Use this skill when the task is about:
- exact
railwaycommands, flags, aliases, arguments, or nested subcommands - choosing between nearby Railway CLI commands for deploys, logs, environments, domains, scaling, SSH, functions, volumes, or database access
- reconciling the installed Railway CLI with newer first-party Railway docs or releases
- using first-party Railway runbooks as supporting context for a CLI-first answer
Do not use this skill when:
- the task is purely dashboard-only, GraphQL-only, or API-only Railway work
- the job is general cloud architecture or infrastructure planning with no Railway CLI decision to make
- a generic shell, Git, or deployment skill can answer the question without Railway-specific context
Non-negotiable rules
- Treat the local extracted help snapshot as the source of truth for the installed binary.
- Treat newer docs and releases as upstream context, not proof that a command exists locally.
- Route to one workflow guide first, then pull exact flags from the command reference.
- Explain close command splits when Railway has look-alike choices.
- Stay read-safe by default; do not mutate Railway resources unless the user explicitly wants an operational action.
- Never guess flags, aliases, or possible values from memory.
Recommended workflow
1. Establish version scope
Run railway --version when version drift could matter.
Read references/research/version-drift.md first if:
- the user says
latest,current,today, ormost recent - the docs show a command the installed CLI does not
- the question mentions newer families such as
skills,agent,bucket, orstarship
2. Choose the smallest reference set
- Exact syntax, flags, aliases, nested subcommands, arguments, or possible values:
references/cli/railway-cli-command-reference.md
- Raw help wording or formatting proof:
references/cli/railway-cli-live-help-snapshot.md
- Top-level completeness audit:
references/cli/command-family-coverage.md
- Workflow choice:
- one matching
references/cli/*.mdrouter - then
references/cli/railway-cli-command-reference.md
- one matching
- Upstream Railway guidance beyond the installed CLI:
- one matching file under
references/upstream/orreferences/database/ - plus
references/research/version-drift.mdwhen local and upstream may differ
- one matching file under
3. Answer case by case
For each answer:
- state whether the scope is local CLI, upstream Railway sources, or both
- choose the best command or reference route
- include exact flags, aliases, nested subcommands, or possible values when asked
- explain the closest confusing alternative when needed
- add a version-drift note only if it materially changes the answer
Common decision splits
| Need | Read |
|---|---|
up vs deploy, redeploy vs restart, or release rollback questions |
references/cli/deployments-and-releases.md |
delete vs unlink, link vs init, project setup, add, open, or auth/context |
references/cli/context-projects-and-linking.md |
run vs shell vs dev, shell completion, or local variable injection |
references/cli/local-development-and-shells.md |
connect vs ssh, status, or logs |
references/cli/observability-and-access.md |
environment, variable, domain, scale, or service scale |
references/cli/configuration-networking-and-scaling.md |
| Functions or volumes | references/cli/functions-and-volumes.md |
| A vague "what Railway command should I use?" question | references/cli/common-workflows.md |
| Dashboard URL parsing, resource-model context, or safe preflight before acting | references/upstream/resource-model-and-preflight.md |
| First-party setup, deploy, configure, operate, docs/API, or DB runbooks | the matching file under references/upstream/ or references/database/ |
Quick routing
- "What flags does
railway Xsupport?" ->references/cli/railway-cli-command-reference.md - "Show the exact help text for
railway X" ->references/cli/railway-cli-live-help-snapshot.md - "Show me every local Railway command family this skill covers" ->
references/cli/command-family-coverage.md - "Which Railway command fits this task?" ->
references/cli/common-workflows.md - "I need to link, init, add, delete, or inspect project context" ->
references/cli/context-projects-and-linking.md - "I need to deploy, redeploy, restart, or roll back the latest deployment" ->
references/cli/deployments-and-releases.md - "I need
run,shell, ordev" ->references/cli/local-development-and-shells.md - "I need logs, status,
connect, orssh" ->references/cli/observability-and-access.md - "I need env vars, config edits, domains, or scale" ->
references/cli/configuration-networking-and-scaling.md - "I need functions or volumes" ->
references/cli/functions-and-volumes.md - "The docs show a command I do not have" ->
references/research/version-drift.md - "I want Railway's own setup or deploy runbook, not just local CLI syntax" ->
references/upstream/operations/setup.mdorreferences/upstream/operations/deploy.md - "I pasted a Railway dashboard URL and need a safe starting point" ->
references/upstream/resource-model-and-preflight.md - "I need first-party Railway database analysis guidance" ->
references/database/analyze-db.md
Refresh the local snapshot
When the Railway CLI changes, refresh the generated references from this skill directory:
node scripts/extract-railway-cli-help.mjs
railway --version
Reference routing
| File | When to read |
|---|---|
references/cli/railway-cli-command-reference.md |
Exact command syntax, flags, aliases, arguments, nested subcommands, and possible values from the installed CLI. |
references/cli/railway-cli-live-help-snapshot.md |
Exact raw help wording, examples, or formatting proof matters. |
references/cli/command-family-coverage.md |
Auditing completeness or proving that every local top-level command family is routed. |
references/cli/common-workflows.md |
The user knows the job but not the right Railway command family yet. |
references/cli/context-projects-and-linking.md |
Auth, context, project discovery, link, unlink, init, add, delete, open, docs, completion, or upgrade. |
references/cli/deployments-and-releases.md |
up, template deploys, deployment history, redeploy, restart, or down. |
references/cli/local-development-and-shells.md |
run, shell, dev, dev configure, dev clean, or shell completion. |
references/cli/observability-and-access.md |
status, logs, connect, ssh, or service-level status/log routing. |
references/cli/configuration-networking-and-scaling.md |
environment, variable, domain, scale, or service scale. |
references/cli/functions-and-volumes.md |
Railway functions and volume workflows, including attach/detach/delete distinctions. |
references/upstream/resource-model-and-preflight.md |
Dashboard URLs, Railway resource-model context, or a safe preflight before choosing commands. |
references/upstream/operations/setup.md |
First-party Railway setup flows for projects, services, templates, buckets, or workspace setup. |
references/upstream/operations/deploy.md |
First-party Railway deploy flows for up, restart/redeploy, build config, Railpack, Dockerfiles, or monorepos. |
references/upstream/operations/configure.md |
First-party Railway configuration flows for environments, variables, domains, networking, or config patches. |
references/upstream/operations/operate.md |
First-party Railway operating flows for status, logs, metrics, health, or recovery. |
references/upstream/docs-and-api/request.md |
Official docs endpoints, community-search guidance, GraphQL gaps, or template discovery. |
references/database/analyze-db.md |
Railway database analysis routing or DB-type selection. |
references/database/analyze-db-postgres.md |
First-party Railway PostgreSQL analysis and tuning guidance. |
references/database/analyze-db-mysql.md |
First-party Railway MySQL analysis and tuning guidance. |
references/database/analyze-db-redis.md |
First-party Railway Redis analysis and tuning guidance. |
references/database/analyze-db-mongo.md |
First-party Railway MongoDB analysis and tuning guidance. |
references/research/version-drift.md |
Latest/current Railway CLI questions or upstream docs that exceed the installed local snapshot. |
Output contract
Return answers in this order unless the user wants a different format:
- scope line: local installed CLI, upstream official sources, or both
- best command or routed next step
- important flags, aliases, subcommands, or possible values
- near-neighbor distinction when confusion is likely
- version-drift note only when it changes the answer
Guardrails
- Do not treat
railway deployandrailway upas synonyms. - Do not treat
railway deleteandrailway unlinkas synonyms. - Do not treat
railway redeployandrailway restartas synonyms. - Do not present upstream-only commands as locally available without saying so explicitly.
- Do not default to dashboard instructions when the user asked about the CLI.
- Do not let the copied upstream runbooks override the local extracted CLI when the user is asking about the installed binary's exact command surface.
- Do not trust the linked directory over an explicit Railway dashboard URL or explicit project/environment/service identifiers.
- Do not mutate Railway resources unless the user explicitly asked for an operational action; this skill is reference-first.
- Do not use this skill for purely dashboard, GraphQL, or infrastructure-only Railway work unless the CLI question is central.
More from yigitkonur/skills-by-yigitkonur
run-research
>-
37run-agent-browser
Use skill if you are driving the agent-browser CLI for browser navigation, DOM-grounded interaction, session/tab management, screenshots, data extraction, or repeatable web app workflows.
33build-skills
Use skill if you are creating or substantially revising a Claude skill and need workspace-first evidence, remote comparison, and repo-fit synthesis before writing SKILL.md.
32publish-npm-package
Use skill if you are automating npm publishing via GitHub Actions and need auth, versioning, provenance, or workflow-template choices.
30build-mcp-use-server
Use skill if you are building or extending TypeScript MCP servers with the mcp-use library — tools, Zod schemas, resources, prompts, transports, OAuth, sessions, testing, and deployment.
29develop-typescript
>-
29