# download-config-openvpn

The vpn download-config-openvpn command downloads the OpenVPN configuration file for the selected VPN. This configuration file can be used to connect to the VPN server from an OpenVPN client.

## Usage

```
cldkctl vpn download-config-openvpn [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
cldkctl vpn download-config-openvpn
```

2. Enter the public IP address in the **IP Public** field.
3. Press **y** for Confirm or **n** for Cancel.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FRxBbqkbieKuqlbj2EmqS%2Funknown.png?alt=media&#x26;token=c020100c-2f80-4efa-95a3-982c62b9642b" alt=""><figcaption></figcaption></figure>

4. Once successful, the terminal displays **"✓ Successfully download config OpenVPN".**
5. The downloaded file typically has the name config-openvpn-by-ai-cloudeka.ovpn and can be found in the system’s Downloads folder.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FO0i6RBacCOYwn0092vA3%2Funknown.png?alt=media&#x26;token=10b5259b-e2f0-4397-af28-05ade1442bcb" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags](https://docs.cloudeka.ai/cloudeka-api-list/global-flags). Refer to the Global Flags section for details.
{% endhint %}

| Flag       | Description                               |
| ---------- | ----------------------------------------- |
| -h, --help | Help for download config openvpn command. |
