# Is it possible to import Action Secrets by auth0-deploy-cli

**URL:** <https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453>\
**Category:** Get Help\
**Tags:** auth0-deploy-cli, actions, deployment\
**Created:** [September 29, 2021, 2:48am UTC](https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453 "2021-09-29T02:48:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hayashi-ay](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hayashi-ay/32/19643_2.png) [@hayashi-ay](https://community.auth0.com/u/hayashi-ay)\
**Post date:** [September 29, 2021, 2:48am UTC](https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453/1 "2021-09-29T02:48:55Z")

</div>

Hi there,

[This document](https://auth0.com/docs/deploy/deploy-cli-tool) says `auth0-deploy-cli` can import the configuration of Actions.  
I wonder it includes Action Secrets.  
If so, I want to know the format to import.

The following is a sample configuration of exporting actions, it has secrets property but secrets are not reflected to Auth0 tenant when import it.

```auto
actions:
  - name: Some Actions
    code: ./actions/Some Actions/code.js
    dependencies: []
    deployed: true
    runtime: node16
    secrets:
      - name: secret1
      - name: secret2
    status: built
    supported_triggers:
      - id: post-user-registration
        version: v2

```

---

<div class="post-metadata">

**Author:** ![hayashi-ay](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hayashi-ay/32/19643_2.png) [@hayashi-ay](https://community.auth0.com/u/hayashi-ay)\
**Post date:** [October 4, 2021, 5:15am UTC](https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453/2 "2021-10-04T05:15:35Z")

</div>

Yes, it’s possible. I noticed an array of objects can be passed to secrets and it worked.  
Of course, Keyword Mappings is available and environmental values can be passed through it.

```auto
  actions:
  - name: Some Actions
    code: ./actions/Some Actions/code.js
    dependencies: []
    deployed: true
    runtime: node16
    secrets: [
      {
        "name": "secretName1",
        "value": "secretValue1"
      },
      {
        "name": "secretName2",
        "value": "secretValue2"
      }
    ]
    status: built
    supported_triggers:
      - id: post-user-registration
        version: v2

```

---

<div class="post-metadata">

**Author:** ![hayashi-ay](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hayashi-ay/32/19643_2.png) [@hayashi-ay](https://community.auth0.com/u/hayashi-ay)\
**Post date:** [October 4, 2021, 5:23am UTC](https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453/3 "2021-10-04T05:23:14Z")

</div>

I couldn’t find the format specification other than [the source code of the cli](https://github.com/auth0/auth0-deploy-cli/blob/fe87b09a155ad6388b418eedc0baa71485172f59/src/tools/auth0/handlers/actions.js#L9).

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 4, 2021, 8:40am UTC](https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453/4 "2021-10-04T08:40:52Z")

</div>

Perfect! Thanks for sharing it with the rest of community!

---

<div class="post-metadata">

**Author:** ![hayashi-ay](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hayashi-ay/32/19643_2.png) [@hayashi-ay](https://community.auth0.com/u/hayashi-ay)\
**Post date:** [October 4, 2021, 8:51am UTC](https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453/5 "2021-10-04T08:51:42Z")

</div>

You’re welcome!

The feature I requested [before](https://community.auth0.com/t/is-there-a-good-way-for-storing-common-values-in-actions/68891/10) is no longer that important since secrets can be managed in the cli and the cost of maintenance is not that great.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 4, 2021, 9:07am UTC](https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453/6 "2021-10-04T09:07:05Z")

</div>

Once again thanks for sharing it with others!

---

<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:** [October 19, 2021, 9:08am UTC](https://community.auth0.com/t/is-it-possible-to-import-action-secrets-by-auth0-deploy-cli/70453/7 "2021-10-19T09:08:06Z")

</div>

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