# password-change

The cldkctl registry password-change command updates the password used for accessing your private registry. This command allows you to set a new authentication password for your registry.

## Usage

```
cldkctl registry password-change [flags]
```

## Steps

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

1. Use the --registry global flag to specify which registry you want to update the password for.
2. Run the following command in your terminal:

```
./cldkctl --registry <registry_name> registry password-change
```

3. Enter your current password when prompted.

* This refers to your user login password (the same password used to sign in to the Service Portal AI).
* It is not the registry password displayed from the Registry Password command.

3. Enter your new password to replace the old one.

* The new password must be different from your current password.
* If the same password is entered, the system will display an error message.

5. If the password update fails, you will have up to three attempts before the process stops.
6. Once the password is successfully changed, you can use the new password for registry authentication.

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

## Flags

{% hint style="info" %}

1. This command supports [global flags.](/cloudeka-api-list/global-flags.md) Refer to the Global Flags section for details.
2. Ensure you remember your new password, as it will be required for all future registry authentication activities
   {% endhint %}

| Flag                      | Description                                    |
| ------------------------- | ---------------------------------------------- |
| -h, --help                | Help for the registry password-change command. |
| -n, --new-password string | New user password.                             |
| -p, --password string     | User password for authentication.              |


---

# 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-registry/password-change.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.
