# A0deploy --no-env not working

**URL:** <https://community.auth0.com/t/a0deploy-no-env-not-working/74179>\
**Category:** Get Help\
**Tags:** auth0-deploy-cli, cli\
**Created:** [December 3, 2021, 10:00am UTC](https://community.auth0.com/t/a0deploy-no-env-not-working/74179 "2021-12-03T10:00:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.cauquil](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/r.cauquil/32/12962_2.png) [@r.cauquil](https://community.auth0.com/u/r.cauquil)\
**Post date:** [December 3, 2021, 10:00am UTC](https://community.auth0.com/t/a0deploy-no-env-not-working/74179/1 "2021-12-03T10:00:39Z")

</div>

### Stack

- **auth0-deploy-cli:** 7.3.1
- **Nodejs:** `16.13.0` & `14.16.1`

### Objective

Importing/Exporting different tenants (dev, staging) configuration from same project.

### Issue

> By default, the tool merges with your current environment variables and overrides the `config.json` file (which has the same top key). You can use the `--no-env` option to disable the override via the command line.

cf: [tenant configuration](https://auth0.com/docs/deploy/deploy-cli-tool/import-export-tenant-configuration-to-directory-structure#import-tenant-configuration)

I tried to use `--no-env` but without success, from your codebase in `src/args.js` the only options define for yargs are `debug` and `proxy_url`.

cf: [args.js](https://github.com/auth0/auth0-deploy-cli/blob/679117d0d53b88a566cecbf91b39d2955820e7a0/src/args.js#L7)

### Workaround

It’s **not ideal** but working so far, I had to put a `.env` in each tenant folder to override the root one.  
Those .env have the same keys as in my `config.json`

---

<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:** [December 3, 2021, 11:42pm UTC](https://community.auth0.com/t/a0deploy-no-env-not-working/74179/3 "2021-12-03T23:42:43Z")

</div>

Hi @r.cauquil,

Thanks for reaching out to the Auth0 Community!

I understand that you have observed an issue where the `--no-env` option is not working with the Auth0 Deploy CLI Extension.

In this case, could you please raise a Github issue so that they could take a look and provide a fix on the problem?

Thank you.

---

<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:** [December 18, 2021, 11:43pm UTC](https://community.auth0.com/t/a0deploy-no-env-not-working/74179/4 "2021-12-18T23:43:23Z")

</div>

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