> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-registry/login.md).

# login

The cldkctl registry login command authenticates users with a container registry using their credentials. This command allows users to log in by providing a username and password, granting access to manage repositories, artifacts, and registry settings. Before using this command, ensure your Docker daemon is running.

## Usage

```
cldkctl registry login [flags]
```

## Steps

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

1. Make sure the Docker daemon is active on your system.
2. Use the `--registry` global flag to specify which registry you want to access.
3. Run the following command in your terminal and replace `<registry_name>` with your target registry name.

```
cldkctl --registry <registry_name> registry login
```

4. When prompted, enter your user login password (the same password used to log in to the Service Portal AI).
5. After successful authentication, the message **“Login to registry success”** will appear.

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

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

<figure><img src="/files/goeNYGcWvjD210cfXhZP" 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 the registry login command.             |
| --password string    | User password for authentication.                |
| -p, --project string | Specifies the project ID to scope the operation. |
