Been using doppler for a while and I was wondering if there is a way to load the secrets into the shell. Right now, I find it really annoying having to type
doppler run -- npm test or any other command. One alternative would be to create a multiple npm scripts such as
npm test and
npm ci:test. However managing this gets harder when you have more and more scripts. I was wondering if the following was possible:
- Only have one set of scripts (test, dev, start, etc)
- When I CD into my local development environment, I run a single command which loads the latest env variables and sources them.
- On CI, doppler syncs the env variables so there is no need to use the doppler command there
- On prod, same as step 3