# 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%2FYlovfhT3SaxD6zcp9zix%2Funknown.png?alt=media&#x26;token=4f879b92-392f-402d-a998-9d1e42536370" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FzYgIhMQZ5WUlQLUuoSVK%2Funknown.png?alt=media&#x26;token=86a9c484-e60e-46a4-9a19-5d19c2b3e5a7" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FxsQajDPb5wd4zwhUt8dL%2Funknown.png?alt=media&#x26;token=b05f72d7-c6bd-4c67-9079-bc61c894c867" 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 the registry login command.             |
| --password string    | User password for authentication.                |
| -p, --project string | Specifies the project ID to scope the operation. |
