0.0.3 • Published 2 years ago

doppler-sync v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

CLI and node tool for synchronously loading Doppler config secrets

Set up Doppler Secret Manager

Getting started with doppler

Generate a service token

Getting started - Typescript / Javascript

Add doppler-sync to your project

$ npm install doppler-sync
#or
$ yarn add doppler-sync

Getting started

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
})

CLI arguments

  • npx doppler-sync --help - Get possible arguments
  • npx doppler-sync --token <DOPPLER_TOKEN> - get all parameters with specified access token
  • npx doppler-sync --prefix <PREFIX> - only return secrets that start with prefix
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago