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
| Subcommand | Description |
|---|---|
status | Show Static Outbound IP and Outbound IPv6 status |
static-ip status | Show Static Outbound IP status |
static-ip enable | Enable Static Outbound IPs |
static-ip disable | Disable Static Outbound IPs |
ipv6 status | Show Outbound IPv6 status |
ipv6 enable | Stage enabling Outbound IPv6 |
ipv6 disable | Stage disabling Outbound IPv6 |
Options
| Flag | Description |
|---|---|
-s, --service <SERVICE> | Service name or ID |
-e, --environment <ENVIRONMENT> | Environment to use |
-p, --project <PROJECT_ID> | Project ID to use |
--json | Output 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.