# Impostare la chiave API tramite console

**URL:** <https://meta.discourse.org/t/setting-the-api-key-via-console/107472>\
**Category:** Development\
**Created:** [24 Gennaio 2019, 10:07pm UTC](https://meta.discourse.org/t/setting-the-api-key-via-console/107472 "2019-01-24T22:07:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [25 Gennaio 2019, 12:48am UTC](https://meta.discourse.org/t/setting-the-api-key-via-console/107472/2 "2019-01-25T00:48:36Z")

</div>

```bash
YML=app
SSH_USER=root@host
API_KEY=`ssh $SSH_USER sudo docker exec -w /var/www/discourse -i $YML rake api_key:get`

```

---

_[View the full topic](https://meta.discourse.org/t/setting-the-api-key-via-console/107472)._
