railway-clilisted
Install: claude install-skill Xipher-Labs/walter-os
# Railway CLI (`railway`)
Railway provides an excellent **official CLI** (Rust binary) that exposes
the full platform: services, databases, env vars, logs, deploys, scaling.
Replaces the dropped community railway-mcp.
## Setup (one-time, per machine)
```bash
brew install railway # macOS (already in setup/Brewfile if added)
# or: npm i -g @railway/cli
railway login # opens browser
# OR for CI / non-interactive:
export RAILWAY_TOKEN="<token-from-railway.app/account/tokens>"
# Link a repo to a Railway project
cd ~/Projects-Personal/<project>
railway link
# ↳ pick project + environment
```
`RAILWAY_TOKEN` lives in Infisical workspace `walter-os` for ad-hoc CLI
use, or per-project workspace for service-bound deployments.
## Common operations
### Projects + services
```bash
railway list # all projects in your account
railway status # current project + service + environment
railway service # interactive service picker
railway environment staging # switch environment
```
### Deploy
```bash
# Deploy current dir to linked service
railway up
# Deploy a specific Dockerfile / nixpacks build
railway up --detach
# Tail logs of latest deploy
railway logs
railway logs --filter <service>
```
### Env vars
```bash
railway variables # list current env's vars
railway variables --set KEY=value # add/update
railway variables --delete KEY
railway run -- pnpm dev