# cldkctl auth

The auth command allows you to log in to the Cloudeka service using your authentication token. When executed, it will prompt you to enter the token obtained from the Service Portal AI. Once authenticated, the token is stored locally for later use.

{% hint style="info" %}
You must authenticate before running any other cldkctl commands. The authentication session is stored locally for subsequent use. This command supports [Global Flags](/cloudeka-api-list/global-flags.md) section for details.
{% endhint %}

{% hint style="success" %}
The token is generated in the Service Portal AI, click this section [Generate a New Token](/cloudeka-api-list/how-to-get-token.md).
{% endhint %}

The auth command allows you to log in to the Cloudeka service using your authentication token. When executed, it will prompt you to enter the token obtained from the Service Portal AI. Once authenticated, the token is stored locally for later use.

## Usage

```
cldkctl auth [flags]
```

## Steps

Follow these steps to authenticate your session:

1. Run the following command in your terminal.

```
cldkctl auth
```

2. Enter your token when prompted.

   You can obtain this token from the Service Portal AI (refer to the Create a Token section).
3. Click Enter to confirm.
4. If successful, the terminal will display the message `Auth success`.

<figure><img src="/files/2OYONjTwlG7wMTi3g2Ej" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="166.6666259765625">Output </th><th>Description</th></tr></thead><tbody><tr><td>Enter your token</td><td>Prompts the user to input their authentication token from the AI Service Portal.</td></tr><tr><td>Auth success</td><td>Indicates that the authentication was successful and the token has been stored securely.</td></tr></tbody></table>

## Flags

<table><thead><tr><th width="150.66668701171875">Flag</th><th>Description</th></tr></thead><tbody><tr><td><code>-h, --help</code></td><td>Help for the auth command.</td></tr></tbody></table>


---

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