# update-user-openvpn

The vpn update-user-openvpn command is used to update an existing OpenVPN user within the selected VPN instance. This command allows you to modify the user’s password and expiration date.

## Usage

```
cldkctl vpn update-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 update-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 username of the OpenVPN user you wish to update in the Username field.

5. Enter a new password in the Password field if you wish to change it.

6. Enter a new expiration date in the Expired Date (MM/DD/YYYY) field if you want to modify the account validity period.

7. Press y for Confirm or n for Cancel.

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

<figure><img src="/files/P6Vw0un9N0ZtpKeYHY9g" alt=""><figcaption></figcaption></figure>

## Flags

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

| Flag       | Description                            |
| ---------- | -------------------------------------- |
| -h, --help | Help for update user open vpn command. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-vpn/update-user-openvpn.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
