Logo

Command Palette

Search for a command to run...

lease

This will open the firewall of the given server for a limited time. 'Time to open' is in minutes. By default the firewall closes after 20 minutes. The maximum time to open is 240 minutes.

$ cx lease --stack <application name> --port <port to open> [--from <from IP>] --tto <lease time>

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesFull or partial name of the application
--from, -f <from IP>noautomatically uses your current IPIP address for the source of traffic. Uses your current IP if not provided.
--port, -p <port to open>yes22The port to open on the server
--tto, -t <lease time>yes20The number of minutes the lease will last (the maximum is 240)

Examples

$ cx lease -s mystack
$ cx lease -s mystack -t 120 -p 3306
$ cx lease -s mystack -p 3306 -f 52.65.34.98