# Deploy CLI does not export all the client grants

**URL:** <https://community.auth0.com/t/deploy-cli-does-not-export-all-the-client-grants/105988>\
**Category:** Get Help\
**Tags:** client-grants, management-api\
**Created:** [May 2, 2023, 3:17pm UTC](https://community.auth0.com/t/deploy-cli-does-not-export-all-the-client-grants/105988 "2023-05-02T15:17:52Z")\
**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:** [May 2, 2023, 3:17pm UTC](https://community.auth0.com/t/deploy-cli-does-not-export-all-the-client-grants/105988/1 "2023-05-02T15:17:52Z")

</div>

I’m using the deploy CLI to export all my client grants. It creates a JSON directory folder called grants, with a JSON file for each client, but each of these files only supports one grant. For example, I have a file called `Group Member.json` with the following JSON file:

```auto
{
  "client_id": "Group Plan Member App Portl",
  "audience": "http://127.0.0.1:8080/group-app",
  "scope": [
    "full_access"
  ]
}

```

but in my tenant, the client has 3 API’s enabled.

---

<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:** [May 11, 2023, 6:15pm UTC](https://community.auth0.com/t/deploy-cli-does-not-export-all-the-client-grants/105988/3 "2023-05-11T18:15:47Z")

</div>

Hi @zaki.machfj,

Thanks for reaching out to the Auth0 Community!

> [@zaki.machfj](#):
>
> It creates a JSON directory folder called grants, with a JSON file for each client, but each of these files only supports one grant.

What you have observed is the expected behavior after you have exported all of your clients’ grants using the Auth0 Deploy CLI.

After the export is complete, it creates a **grants** folder where it creates a file for each Application assigned to an API with the assigned scopes (permissions).

In this case, you should see 3 separate files for your Group Plan Member App Portl client for each API with the assigned scopes.

Please note that each file can only reference one API.

I hope this helps!

Please let me know if you have any questions.

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:** [May 25, 2023, 6:16pm UTC](https://community.auth0.com/t/deploy-cli-does-not-export-all-the-client-grants/105988/4 "2023-05-25T18:16:42Z")

</div>

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