DopplerHQ / DopplerHQ/cli

[FEATURE] CLI option to apply change request locally

Open
#474 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
396
Forks
83
Avg merge
1d 2h
Merged PRs (30d)
3

Description

Is your feature request related to a problem? Please describe.
When I create a change request, I'd like to be able to test out the changes locally before they're applied. Currently the only way to do this is to manually apply environment variables.

Describe the solution you'd like
I'd like a new CLI flag for doppler run that applies the changes in the change request when running the command, e.g.:

doppler run --apply-cr=6d8e2041-de18-4b17-986f-0840faec579e ./server

This way I can test out a set of changes locally and make sure they have the effect I intend, without merging the PR and having it affect production systems.

Describe alternatives you've considered
The best alternative is to apply the changes manually, e.g.:

FOO=bar BAZ=quz doppler run ./server

However, this is error prone because you have to ensure manually that those environment variables match the change request, and that they're not going to be overwritten by doppler run.

Additional context
N/A

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the doppler run command and its existing option parsing, then trace how change requests are represented and applied. Implement the requested --apply-cr behavior so the command can run with the change request's values locally without merging it, and verify that the launched process receives the intended environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.