> 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="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-274a82cd6f0232ce0e32407d182b8c35f2a466d1%2Funknown.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-e34c142a37ae16d99807d63c76db3107eea29b08%2Funknown.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-ae92ef9d7b6b8e22fd62768b55244146d78d7226%2Funknown.png?alt=media" 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. |
