# How to setup doppler to work with NX workspace and NEST JS application?

**URL:** <https://community.doppler.com/t/how-to-setup-doppler-to-work-with-nx-workspace-and-nest-js-application/1219>\
**Category:** Need Help\
**Created:** [July 3, 2023, 12:11pm UTC](https://community.doppler.com/t/how-to-setup-doppler-to-work-with-nx-workspace-and-nest-js-application/1219 "2023-07-03T12:11:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vignesh\_Vaidyanathan](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@Vignesh\_Vaidyanathan](https://community.doppler.com/u/Vignesh_Vaidyanathan)\
**Post date:** [July 3, 2023, 12:11pm UTC](https://community.doppler.com/t/how-to-setup-doppler-to-work-with-nx-workspace-and-nest-js-application/1219/1 "2023-07-03T12:11:42Z")

</div>

I am trying to build a simple NX monorepo with React Native and Nest JS app. I can configure the app and it works well when using a global .env file. Now I am trying to move that .env file into Doppler and get the secrets from there.  
I created Doppler projects and setup that to the folder I am working on. I am not able to figure out how to run the doppler command from the default NX executor.  
Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![watsonian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/watsonian/32/267_2.png) [@watsonian](https://community.doppler.com/u/watsonian)\
**Post date:** [July 5, 2023, 9:12pm UTC](https://community.doppler.com/t/how-to-setup-doppler-to-work-with-nx-workspace-and-nest-js-application/1219/2 "2023-07-05T21:12:24Z")

</div>

Hi @Vignesh_Vaidyanathan!

Welcome to the Doppler Community!

If you already have your project working well with a global `.env` file, then you can import that into Doppler using the import button on an empty project config:

 ![CleanShot 2023-07-05 at 16.09.16](https://us1.discourse-cdn.com/flex016/uploads/doppler/original/1X/7c4b5396af2f56304c1e7c50eaa35e8c5a5b75a6.png)

After doing that, you can start your local project using our [CLI mount feature](https://docs.doppler.com/docs/accessing-secrets#mounting) like this:

```shell
doppler run --mount .env -- YOUR_USUAL_START_COMMAND

```

Note that `--mount` will only work on Mac OS and Linux systems though. Also, you mentioned that you have a monorepo setup – depending upon how it’s setup this may or may not work. Give it a look and let me know if it works for what you’re after. If not, we can investigate other potential options.

Regards,  
-Joel
