map-route - Cloud Foundry CLI Reference Guide


NAME

map-route - Map a route to an app

USAGE

Map an HTTP route: cf map-route APP_NAME DOMAIN [--hostname HOSTNAME] [--path PATH] [--destination-protocol PROTOCOL] Map a TCP route: cf map-route APP_NAME DOMAIN [--port PORT]

EXAMPLES

cf map-route my-app example.com # example.com cf map-route my-app example.com --hostname myhost # myhost.example.com cf map-route my-app example.com --hostname myhost --path foo # myhost.example.com/foo cf map-route my-app example.com --hostname myhost --destination-protocol http2 # myhost.example.com cf map-route my-app example.com --port 5000 # example.com:5000

OPTIONS

--hostname, -n

Hostname for the HTTP route (required for shared domains)

--path

Path for the HTTP route

--port

Port for the TCP route (default: random port)

--destination-protocol

[Beta flag, subject to change] Protocol for the route destination (default: http1). Only applied to HTTP routes

SEE ALSO

create-route, routes, unmap-route