# Generate API Key & Secret

Cloud Hosting service allows you to deploy your applications using a CLI. To use the CLI, you need an API Key & API Secret. To generate these, make sure your application has already been approved by an administrator.

Once your application is approved, you should see an option to generate an API Key & Secret next to your application.

<figure><img src="/files/ttdi3E2txNRFf8UeBcTk" alt=""><figcaption><p>Applications List with context menu</p></figcaption></figure>

Select "Generate API Key" and you should soon see a new screen which allows you to download your API Key/Secret pair in a text file.

<figure><img src="/files/DrFdXLNbciCgImY7FCAb" alt=""><figcaption><p>API Key &#x26; Secret</p></figcaption></figure>

Once you download the file, you can proceed to [deploy your application](broken://pages/4clmK5qFDj4b6lESgWHm) using API Key/Secret pair.

{% hint style="warning" %}
Choosing to "Generate API Key" again invalidates existing API Key/Secret pair.
{% endhint %}

You can view your API Key anytime in your application's details, but if you lose your API Secret you must regenerate both API Key & Secret.

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


---

# 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.adminjs.co/deployment/generate-api-key-and-secret.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.
