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

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.

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:

After doing that, you can start your local project using our CLI mount feature like this:

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