create-route - Cloud Foundry CLI Reference Guide


NAME

create-route - Create a url route in a space for later use

USAGE

Create an HTTP route: cf create-route SPACE DOMAIN [--hostname HOSTNAME] [--path PATH] Create a TCP route: cf create-route SPACE DOMAIN (--port PORT | --random-port)

EXAMPLES

cf create-route my-space example.com # example.com cf create-route my-space example.com --hostname myapp # myapp.example.com cf create-route my-space example.com --hostname myapp --path foo # myapp.example.com/foo cf create-route my-space 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

--random-port

Create a random port for the TCP route

SEE ALSO

check-route, domains, map-route