# How to specify latest version for dependency from auth0-deploy-cli

**URL:** <https://community.auth0.com/t/how-to-specify-latest-version-for-dependency-from-auth0-deploy-cli/99160>\
**Category:** Get Help\
**Tags:** other, missing-category\
**Created:** [January 27, 2023, 7:21pm UTC](https://community.auth0.com/t/how-to-specify-latest-version-for-dependency-from-auth0-deploy-cli/99160 "2023-01-27T19:21:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaki.machfj](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zaki.machfj/32/42859_2.png) [@zaki.machfj](https://community.auth0.com/u/zaki.machfj)\
**Post date:** [January 27, 2023, 7:21pm UTC](https://community.auth0.com/t/how-to-specify-latest-version-for-dependency-from-auth0-deploy-cli/99160/1 "2023-01-27T19:21:25Z")

</div>

I’m using Github Actions and the deploy-cli to automate creating and updating actions in my Auth0 tenant. How can I specify the latest version of a dependency, similar to when creating an action manually through the dashboard.

## My `tenant.yaml` file

```yaml
- name: Dependency Action
      code: ./actions/Dependency Action/code.js
      dependencies:
          - name: ipaddr.js
          - version: latest
      deployed: false
      runtime: node16
      secrets: []
      status: built
      supported_triggers:
          - id: post-login
            version: v2

```

Doing the above returns an error in Github actions, with an invalid version.

---

<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:** [January 30, 2023, 10:21pm UTC](https://community.auth0.com/t/how-to-specify-latest-version-for-dependency-from-auth0-deploy-cli/99160/3 "2023-01-30T22:21:15Z")

</div>

Hi @zaki.machfj,

Thanks for reaching out to the Auth0 Community!

> [@zaki.machfj](#):
>
> How can I specify the latest version of a dependency, similar to when creating an action manually through the dashboard.

In your `tenant.yaml` file, you will need to specify the version number of the dependency. For example:

```auto
- name: Dependency Action
      code: ./actions/Dependency Action/code.js
      dependencies:
          - name: ipaddr.js
          - version: 1.9.0
      deployed: false
      runtime: node16
      secrets: []
      status: built
      supported_triggers:
          - id: post-login
            version: v2

```

At this time, version 1.9.0 is the latest version we offer for the ipaddr package. See [here](https://auth0-extensions.github.io/canirequire/#ipa) for details.

Thanks,  
Rueben

---

<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:** [February 13, 2023, 10:21pm UTC](https://community.auth0.com/t/how-to-specify-latest-version-for-dependency-from-auth0-deploy-cli/99160/4 "2023-02-13T22:21:47Z")

</div>

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