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

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


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.


Hi @kamal.nellipudi,

Welcome to the Auth0 Community!

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:

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

You may also find the Auth0 Deploy CLI Github example useful.

Please let me know if you have any further questions.

Thank you.

Thanks for the pointer. I found the directory structure with secrets in Auth0 Deploy CLI Github -action example

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