railway private-network
Manage private networking endpoint status and names for a service.
Private networking uses the selected service and environment. When multiple
private networks exist, status shows each network. update defaults to the
network named railway unless you pass --network.
Usage
railway private-network <COMMAND> [OPTIONS]Subcommands
| Subcommand | Description |
|---|---|
status | Show private networking status |
update | Update the private networking endpoint name |
Options
| Flag | Description |
|---|---|
-s, --service <SERVICE> | Service name or ID |
-e, --environment <ENVIRONMENT> | Environment to use |
-p, --project <PROJECT_ID> | Project ID to use |
--network <NETWORK> | Private network name, ID, or DNS name |
--json | Output in JSON format |
Examples
Show private networking status
railway private-network status --service apiShows private networking status for the selected service and environment.
Show status for a specific private network
railway private-network status --network railway --jsonUses the private network name, ID, or DNS name passed to --network.
Update an endpoint name
railway private-network update api-internal --service apiUpdates the service's private networking endpoint name. Pass the endpoint name
prefix only, without the .internal suffix.