# Actions created via Auth0 Deploy CLI comes with legacy badge

**URL:** <https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189>\
**Category:** Get Help\
**Tags:** auth0-deploy-cli\
**Created:** [September 8, 2022, 12:21am UTC](https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189 "2022-09-08T00:21:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravinder.sandhu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ravinder.sandhu/32/13366_2.png) [@ravinder.sandhu](https://community.auth0.com/u/ravinder.sandhu)\
**Post date:** [September 8, 2022, 12:21am UTC](https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189/1 "2022-09-08T00:21:18Z")

</div>

```auto
actions:
  - name: login-claims-user
    code: /actions/login-claims-user/myaction.js
    dependencies:
      - name: auth0
        version: 2.42.0
    deployed: true
    secrets:
      - name: domain
        value: mydomain.auth0.com
    status: built
    supported_triggers:
      - id: post-login
        version: v1

```

Above code creates the new action in my auth0 tenant but it comes back with legacy bade in Auth0 UI.

 ![issue](https://global.discourse-cdn.com/auth0/original/3X/9/c/9c2ebec7cdd84258e373ebf6150363a67f548719.png)

I’m using this version of CLI: “auth0-deploy-cli”: “^7.14.3”,

---

<div class="post-metadata">

**Author:** ![mohit.singh1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mohit.singh1](https://community.auth0.com/u/mohit.singh1)\
**Post date:** [June 14, 2023, 1:56pm UTC](https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189/2 "2023-06-14T13:56:15Z")

</div>

Any updates on this? I tried runtime: node16 in the actions. But then the deployment fails.

---

<div class="post-metadata">

**Author:** ![gparascandolo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gparascandolo/32/38788_2.png) [@gparascandolo](https://community.auth0.com/u/gparascandolo)\
**Post date:** [June 14, 2023, 3:55pm UTC](https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189/3 "2023-06-14T15:55:07Z")

</div>

Hi @mohit.singh1 , what error are you getting when deployment fails?  
If you haven’t done so, make sure you are using version `v3` for the `post-login` supported\_triggers.

For future reference, you can use the Actions [Get triggers](https://auth0.com/docs/api/management/v2#!/Actions/get_triggers) Management API endpoint to see the latest Action trigger versions available in Auth0.

---

<div class="post-metadata">

**Author:** ![mohit.singh1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@mohit.singh1](https://community.auth0.com/u/mohit.singh1)\
**Post date:** [June 15, 2023, 7:31am UTC](https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189/4 "2023-06-15T07:31:12Z")

</div>

Thanks @gparascandolo after using v3 I am able to deploy it with the proper runtime.  
supported\_triggers:  
- id: post-login  
version: v3  
The only caveat is we have to manually delete the old legacy rule first and then try to deploy the new one.

---

<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:** [June 16, 2023, 1:40pm UTC](https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189/5 "2023-06-16T13:40:42Z")

</div>

Thanks for the help @gparascandolo.

Let me know if you still have any issues with this and I can test it on my side.

---

<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:** [January 8, 2024, 12:47pm UTC](https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189/6 "2024-01-08T12:47:10Z")

</div>

Hey there!

As this topic is related to Actions and Rules & Hooks are being deprecated soon in favor of Actions, I’m excited to let you know about our next [Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team](https://community.auth0.com/t/auth0-community-ask-me-anything-rules-hooks-and-why-actions-matter/124043) on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

[Learn more here!](https://community.auth0.com/t/auth0-community-ask-me-anything-rules-hooks-and-why-actions-matter/124043)

---

<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 26, 2024, 11:49pm UTC](https://community.auth0.com/t/actions-created-via-auth0-deploy-cli-comes-with-legacy-badge/90189/7 "2024-11-26T23:49:40Z")

</div>

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