sincecutoff.com
← all changes

railway CLI domain management commands

Introduced 2026-06-16 · score 0.98

HOW TO USE IT

When managing Railway service or custom domains from the CLI, use `railway domain` subcommands to list, inspect, update, retry certificates, or delete. Create a generated service domain or custom domain with `railway domain [DOMAIN]`, adding `--port` when needed; for custom-domain creation with CLI OAuth, use the documented create flow without a separate availability preflight.

railway domain list --service <service> --json
railway domain status <domain-or-id> --service <service> --json railway domain update <domain-or-id> --port <port> --service <service> railway domain certificate retry <domain-or-id> --service <service> railway domain delete <domain-or-id> --service <service> --yes
railway domain <domain> --port <port> --service <service> --environment <environment>

WHY THIS HELPS

Manage Railway service or custom domains while maintaining a project from the CLI.

REQUIREMENTS AND LIMITATIONS

  • Version: v5.14.0
  • DOMAIN / DOMAIN_OR_ID: Creation accepts an optional custom domain; status, update, certificate retry, and delete require a domain name, URL, or domain ID.
  • --port: Port to connect to on creation; target port for domain update. Validated as a port value.
  • --service: Service whose domains to manage; if omitted, uses the resolved linked service context.
  • --environment: Environment to use; defaults to the linked environment.
  • --project: Project ID to use; defaults to the linked project.
  • --domain <DOMAIN>: On update, rename a Railway-provided service domain using a full service domain or host label; custom domains cannot be renamed.
  • --yes / -y: Skip the delete confirmation dialog.
  • --json: Output in JSON format.
  • Service-domain target ports can be updated and service domains can be renamed.
  • Custom-domain target ports can be updated.
  • Legacy `railway domain --json` output shapes are preserved.
  • The change adds local MCP parity for create, list, status, update, certificate retry, and delete domain workflows.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card