|Docs

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

Subcommands

SubcommandDescription
statusShow private networking status
updateUpdate the private networking endpoint name

Options

FlagDescription
-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
--jsonOutput in JSON format

Examples

Show private networking status

Shows private networking status for the selected service and environment.

Show status for a specific private network

Uses the private network name, ID, or DNS name passed to --network.

Update an endpoint name

Updates the service's private networking endpoint name. Pass the endpoint name prefix only, without the .internal suffix.