Is there a way to change the doppler setup inside the monorepo at once?

Hello, I’m using yarn workspace + lerna. Doppler.yaml exists for each application. Whenever you change to a stage, develop, master, local project, it is cumbersome to go to the application directory and type doppler setup and make changes! Is there a solution that I can change at once?

We look forward to hearing from you!

Hi @jieey1140 and welcome to the Doppler Community!

There is indeed a one-time task that avoids having to run doppler setup repeatedly as long as you have a doppler.yaml file in each app folder (make sure it’s not `Doppler.yaml).

Simple change into every app folder, then run:

doppler setup --no-interactive

Now every time you change into an app folder, the Doppler CLI is pre-configured with no need to run doppler setup again.

@jieey1140 As an aside, we have also been discussing some potential modifications to the doppler.yaml file that would allow you to describe your whole monorepo in it. If that gets implemented, then it would allow you to run a single doppler setup to configure your entire project. I don’t know when that support might get added, but it’s definitely on our mind and something we’re looking into!

1 Like

I’m really looking forward to it! I’ll be waiting for the update of the doppler. XD

When you say “Simply change into every app folder” do you really mean EVERY app folder? or did you man like the top level directory.

I use a service called gitpod which is an online ide but every environment instance is ephemeral. You can essentially think of it as a Docker container with a vscode web ui and every time you access the ide you are accessing a new fresh instance with your git repo mounted into it as your workspace.

I currently use a setup.sh that is used to setup the workspace container and so would I need to have a script that recursively does ‘doppler setup --no-interactive’ on every project directory?