Loading...
Loading...
Add, view, or remove domains for Railway services. Use when user wants to add a domain, generate a railway domain, check current domains, get the URL for a service, or remove a domain.
npx skill4agent add davila7/claude-code-templates railway-domainrailway domain --jsonrailway domain --json --service backendrailway domain example.com --json{
"domain": "example.com",
"dnsRecords": [
{ "type": "CNAME", "host": "@", "value": "..." }
]
}query domains($envId: String!) {
environment(id: $envId) {
config(decryptVariables: false)
}
}config.services.<serviceId>.networkingserviceDomainscustomDomains{
"services": {
"<serviceId>": {
"networking": {
"customDomains": { "<domainId>": null }
}
}
}
}{
"services": {
"<serviceId>": {
"networking": {
"serviceDomains": { "<domainId>": null }
}
}
}
}| Flag | Description |
|---|---|
| Custom domain to add (omit for railway domain) |
| Port to connect |
| Target service (defaults to linked) |
| JSON output |
No service linked. Use --service flag or run `railway service` to select one.Service already has a railway-provided domain. Maximum 1 per service.Service has no deployment. Deploy first with `railway up`.Invalid domain format. Use a valid domain like "example.com" or "api.example.com".