> For the complete documentation index, see [llms.txt](https://docs.adminjs.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adminjs.co/deployment/generate-api-key-and-secret.md).

# 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="https://1168344051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7MhMCUXEhENfdS0AAJpN%2Fuploads%2FVIIKpP1K70OKcXidbV4W%2FScreenshot%202022-11-23%20at%2010.16.32.png?alt=media&amp;token=6472e915-0868-4b5a-8640-92ed244155b6" 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="https://1168344051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7MhMCUXEhENfdS0AAJpN%2Fuploads%2FuUkjLZuJrIPi2Qu99aRr%2FScreenshot%202022-11-23%20at%2010.18.04.png?alt=media&amp;token=dae23796-72df-4318-b345-316bdb6031ef" 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="https://1168344051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7MhMCUXEhENfdS0AAJpN%2Fuploads%2FH9OMd5ZHtyRJJUcah0Fy%2FScreenshot%202022-11-23%20at%2010.21.07.png?alt=media&amp;token=a1309e8a-68e0-4859-9763-92cb0af81f0c" alt=""><figcaption></figcaption></figure>
