Add doppler-sync to your project
$ npm install doppler-sync
#or
$ yarn add doppler-sync
Globally install doppler-sync
$ npm install doppler-sync -g
#or
$ yarn global add doppler-sync
Load Doppler secret values using DOPPLER_TOKEN in environment variables
$ doppler-sync
Load Doppler config secret values using DOPPLER_TOKEN in javascript
import { getConfig } from "doppler-sync";
let config = getConfig({
token?: string,
prefix?: string
})
npx doppler-sync --help
- Get possible argumentsnpx doppler-sync --token <DOPPLER_TOKEN>
- get all parameters with specified access tokennpx doppler-sync --prefix <PREFIX>
- only return secrets that start with prefix