# Auth0-deploy-cli directory configuration: Add secrets to action

**URL:** <https://community.auth0.com/t/auth0-deploy-cli-directory-configuration-add-secrets-to-action/78262>\
**Category:** Get Help\
**Created:** [February 14, 2022, 9:52pm UTC](https://community.auth0.com/t/auth0-deploy-cli-directory-configuration-add-secrets-to-action/78262 "2022-02-14T21:52:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamal.nellipudi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kamal.nellipudi/32/12789_2.png) [@kamal.nellipudi](https://community.auth0.com/u/kamal.nellipudi)\
**Post date:** [February 14, 2022, 9:52pm UTC](https://community.auth0.com/t/auth0-deploy-cli-directory-configuration-add-secrets-to-action/78262/1 "2022-02-14T21:52:19Z")

</div>

I am using auth0-deploy-cli to deploy configuration from directory to Auth0 tenant. Here is my current how my actions folder looks.

![image](https://global.discourse-cdn.com/auth0/original/3X/2/8/283bf0ca3e1ddd758b6c2ed6321b6c00c717e262.png)

Is it possible to deploy secrets assoicated with the actions using the cli tool? I see in a similar question that its possible to use this via yaml, I am looking for some direction on how to achieve the same with directory configuration.

Any help will be appreciated.

Regards

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 14, 2022, 10:55pm UTC](https://community.auth0.com/t/auth0-deploy-cli-directory-configuration-add-secrets-to-action/78262/3 "2022-02-14T22:55:29Z")

</div>

Hi @kamal.nellipudi,

Welcome to the Auth0 Community!

> [@kamal.nellipudi](#):
>
> Is it possible to deploy secrets assoicated with the actions using the cli tool?

Yes, it is possible! To do so, you will need to use the `tenant.yaml` approach and specify the key-value pairs in the secrets object. See below:

```auto
actions:
  - name: action-example
    code: ./actions/action-example/code.js
    dependencies:
      - name: lodash
        version: 4.17.21
    deployed: true
    secrets:
      - name: MY_SECRET
        value: _VALUE_NOT_SHOWN_
    status: built
    supported_triggers:
      - id: post-login
        version: v1

```

You may also find the [Auth0 Deploy CLI Github example](https://github.com/auth0/auth0-deploy-cli/blob/master/examples/yaml/tenant.yaml#L184) useful.

Please let me know if you have any further questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![kamal.nellipudi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kamal.nellipudi/32/12789_2.png) [@kamal.nellipudi](https://community.auth0.com/u/kamal.nellipudi)\
**Post date:** [February 15, 2022, 12:17am UTC](https://community.auth0.com/t/auth0-deploy-cli-directory-configuration-add-secrets-to-action/78262/4 "2022-02-15T00:17:31Z")

</div>

Thanks for the pointer. I found the directory structure with secrets in [Auth0 Deploy CLI Github -action example](https://github.com/auth0/auth0-deploy-cli/blob/master/examples/directory/actions/action-example.json#L14)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2022, 12:18am UTC](https://community.auth0.com/t/auth0-deploy-cli-directory-configuration-add-secrets-to-action/78262/5 "2022-03-02T00:18:13Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
