# add-user-openvpn

The vpn add-user-openvpn command is used to create a new OpenVPN user within the selected VPN instance. This command provisions a user account by specifying the VPN Name, IP Public, Username, Password, and Expiration Date.

## Usage

```
cldkctl vpn add-user-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 add-user-openvpn
```

2. Enter the **VPN name** in the VPN Name field. To obtain or verify it, refer to vpn list.
3. Enter the public IP address in the **IP Public** field.
4. Enter the desired username in the **Username** field.
5. Enter the password in the **Password** field. Make sure to create a strong password for better security.
6. Enter the expiration date of the OpenVPN user account in the **Expired Date (MM/DD/YYYY)** field.
7. 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%2FfAhleMSCJenXMp3pXlEV%2Funknown.png?alt=media&#x26;token=3a790508-b3bd-4a1f-af09-e608f7ac217d" alt=""><figcaption></figcaption></figure>

8. Once successful, the terminal displays **"✓ User OpenVPN successfully added".**

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2F8UTkLUKckdMqunhGxcrn%2Funknown.png?alt=media&#x26;token=99f23ff1-c796-4ab1-b8fa-b9f35a85d38c" 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 add user open vpn command. |
