open-index/open-npm huggingface dataset:
npm package: @mtndev/doppler-cli
Description: Doppler script
Author: mtndev
Latest version: 1.0.0

# @mtndev/doppler-cli

CLI utility for upload and download environment variables between local `.env` files and the Doppler cloud.

## Prereqs

- [Doppler CLI](https://docs.doppler.com/docs/install-cli) installed (`brew install dopplerhq/cli/doppler`)
- [jq](https://stedolan.github.io/jq/) installed (`brew install jq`)
- Authenticated with Doppler (`doppler login`)
- Doppler project configured (`doppler setup`)

## Project Installation

```bash
pnpm add -D @mtndev/doppler-cli
```

Add to your `package.json` `scripts`:

```json
{
  "scripts": {
    "doppler": "doppler-cli"
  }
}
```

Then use via npm/pnpm:

```bash
# download `dev` config from Doppler to .env
pnpm doppler download

# download ALL configs from Doppler to local .env files
pnpm doppler download

# Upload .env.dev to `dev` config
pnpm doppler upload

# Uploads .env.dev -> `dev`, .env.stg -> `staging`, .env.prd -> `production`
pnpm doppler upload
```