# gateways open


Opens a gateway for use with Cloud 66 for a specified amount of time (TTL).

```shell
$ cx gateways open --name <gateway name> --key <path/to/gateway/key/file>  --ttl <time to live>
```

#### Options

| Argument | Required? | Default | Description |
|  ---  |  ---  |  ---  |  ---  |
| `--name <gateway name>` | yes | — | The name of the gateway |
| `--key <path/to/gateway/key/file>` | yes | — | The path to the gateway key file on your local machine |
| `--ttl <time to live>` | no | forever | The length of time the gateway will remain open. For example 1h, 30m, 30s |

#### Examples

```shell
$ cx gateways open --name aws_bastion --key /tmp/gateway.pem --ttl 45m
```