# Auth0-deploy-cli yaml configuration: Add an action to a flow

**URL:** <https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654>\
**Category:** Get Help\
**Created:** [October 20, 2021, 10:33am UTC](https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654 "2021-10-20T10:33:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![securitan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@securitan](https://community.auth0.com/u/securitan)\
**Post date:** [October 20, 2021, 10:33am UTC](https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654/1 "2021-10-20T10:33:44Z")

</div>

I used auth0-deploy-cli to import an action. Here is my yaml -

```auto
actions:
  - name: init-user
    code: ./actions/init-user.js
    deployed: true
# runtime: node16
    supported_triggers:
      - id: post-login
        version: v2
    secrets:
      - name: domain
        value: XXX
      - name: clientId
        value: XXX
      - name: clientSecret
        value: XXX

```

While the action is imported, it is not added to the login flow as I was expecting it to be -

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/6/46d60f1d64bf1a2006d2d7f9e634b88744491b95.png)

What do I do in the yaml configuration to make it part of the login flow?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 20, 2021, 8:33pm UTC](https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654/3 "2021-10-20T20:33:37Z")

</div>

Hi @securitan,

Welcome to the Auth0 Community!

It looks like you need to [update the trigger bindings](https://auth0.com/docs/api/management/v2#!/Actions/patch_bindings).

Can you try adding the following:

```auto
triggers:
  post-login:
    - action_name: init-user
      display_name: init-user

```

---

<div class="post-metadata">

**Author:** ![securitan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@securitan](https://community.auth0.com/u/securitan)\
**Post date:** [October 20, 2021, 9:36pm UTC](https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654/4 "2021-10-20T21:36:49Z")

</div>

Thank you, @dan.woda! That works!

Is there a way to define the order in which the actions execute in a flow like we do in rules?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 21, 2021, 3:01pm UTC](https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654/5 "2021-10-21T15:01:55Z")

</div>

Yes, the order they are in should be the order in which they run (per trigger type). Does that help?

---

<div class="post-metadata">

**Author:** ![securitan](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@securitan](https://community.auth0.com/u/securitan)\
**Post date:** [October 21, 2021, 10:34pm UTC](https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654/6 "2021-10-21T22:34:04Z")

</div>

That makes sense. Thanks, @dan.woda!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 21, 2021, 10:50pm UTC](https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654/7 "2021-10-21T22:50:16Z")

</div>

Great! Let us know if there is anything else we can do.

---

<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:** [November 5, 2021, 10:50pm UTC](https://community.auth0.com/t/auth0-deploy-cli-yaml-configuration-add-an-action-to-a-flow/71654/8 "2021-11-05T22:50:24Z")

</div>

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