# deploy

This Claude Code skill deploys local code to Railway with railway up. It activates for requests to ship changes or watch a build.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · 126 installs
- Author: Railway
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/railway/deploy
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/railway-deploy

## What it does

The skill sends code from the current directory to Railway by running `railway up`. Its default `--detach` mode returns without waiting for the build. Use `--ci` to stream build output until the build finishes, which also exposes errors in the command output.

A target service can be selected with `--service`. For an unlinked project, the command needs both `--project` and `--environment`; otherwise, the project and service must already be linked. The Railway CLI, `railway-cli`, is required.

After a build failure in `--ci` mode, the build output is already available. The skill avoids running `railway logs --build` afterward because that command keeps streaming logs.

## Requirements
- Works with: Docker

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill railway/deploy
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill railway-deploy -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/deploy/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/deploy/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill railway-deploy -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/deploy/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill railway-deploy -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/deploy/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates cli-tool/components/skills/railway/deploy
```

2. **Manually: put the files in place**
- File: `.github/skills/deploy/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill railway-deploy -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/railway/deploy
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/deploy/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/railway/deploy

## When to use it
- deploy local changes to Railway
- target a specific service with `--service`
- stream build output until the deployment finishes
- deploy to a project without linking it first

## Example prompts
- Deploy the code in the current directory to Railway.
- Ship these changes to the `backend` service and show the build output.
- Deploy to project `<project-id>` in the `production` environment.

## Similar
- [use-railway](https://affpapa.org/en/nevibecode/skills/use-railway.md) — skill · 1200 installs
- [Deployment Advisor](https://affpapa.org/en/nevibecode/skills/deployment-advisor.md) — skill · 145 installs
- [aiq-deploy](https://affpapa.org/en/nevibecode/skills/aiq-deploy.md) — skill · ★ 8052 repo stars
- [dokploy-deploy](https://affpapa.org/en/nevibecode/skills/dokploy-deploy.md) — skill · ★ 1216 repo stars
- [aws-cloudformation-task-ecs-deploy-gh](https://affpapa.org/en/nevibecode/skills/aws-cloudformation-task-ecs-deploy-gh.md) — skill · ★ 372 repo stars
- [deploy-checklist](https://affpapa.org/en/nevibecode/skills/deploy-checklist.md) — skill · 5900 installs

## Other versions with the same name
- [deploy · adobe](https://affpapa.org/en/nevibecode/skills/adobe-deploy.md) — 340 installs
- [deploy · shipshitdev](https://affpapa.org/en/nevibecode/skills/shipshitdev-deploy.md) — 104 installs
- [deploy · vercel](https://affpapa.org/en/nevibecode/skills/deploy-3.md) — 22 installs
- [deploy · pedrohcgs](https://affpapa.org/en/nevibecode/skills/pedrohcgs-deploy.md) — ★ 1729 repo stars
- [deploy · microsoft](https://affpapa.org/en/nevibecode/skills/deploy-2.md) — ★ 1167 repo stars

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 745 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
