# 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. |


---

# 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/login.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.
