|Docs

railway outbound-network

Manage Static Outbound IPs and Outbound IPv6 for a service.

Static Outbound IP changes are committed directly to the service's outbound networking settings. Redeploy the service before outbound traffic uses the new IP addresses or stops using removed IP addresses.

Outbound IPv6 changes are staged as environment config changes. Apply the staged changes to trigger a redeploy.

Usage

Subcommands

SubcommandDescription
statusShow Static Outbound IP and Outbound IPv6 status
static-ip statusShow Static Outbound IP status
static-ip enableEnable Static Outbound IPs
static-ip disableDisable Static Outbound IPs
ipv6 statusShow Outbound IPv6 status
ipv6 enableStage enabling Outbound IPv6
ipv6 disableStage disabling Outbound IPv6

Options

FlagDescription
-s, --service <SERVICE>Service name or ID
-e, --environment <ENVIRONMENT>Environment to use
-p, --project <PROJECT_ID>Project ID to use
--jsonOutput in JSON format

Examples

Show outbound networking status

Shows Static Outbound IP and Outbound IPv6 status for the selected service.

Enable Static Outbound IPs

Enables Static Outbound IPs and prints the assigned IPv4 addresses. Redeploy the service before outbound traffic uses these IP addresses.

Disable Static Outbound IPs

Disables Static Outbound IPs. Redeploy the service before outbound traffic stops using the removed IP addresses.

Stage Outbound IPv6

Stages an environment config change for Outbound IPv6. Apply staged changes to trigger a redeploy.

Clear or stage disabling Outbound IPv6

If Outbound IPv6 is enabled, this stages disabling it. If enabling Outbound IPv6 is staged but not applied, this clears the staged change.

Output JSON

Use --json to inspect lifecycle fields for automation. Static Outbound IP actions use direct lifecycle mode. Outbound IPv6 actions use environmentPatch lifecycle mode.