DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
214 stars 43 forks source link

[BUG] v3.57.0 now require project and config arguments #384

Closed glarivie closed 1 year ago

glarivie commented 1 year ago

Describe the bug Cli v3.57.0 introduce a breaking-change and now require --projet and --config arguments to fetch secrets but not before (with cli v3.56.2 for exemple). Same behavior with all commands, not only doppler secrets.

To Reproduce

with cli v3.57.0 :
➜ cd <folder>
➜ doppler setup --token=*** --project=my_project --config=dev
➜ doppler secrets --only-names

Unable to fetch secret names
Doppler Error: You must specify a project
➜ doppler secrets --project=my_project --only-names

Unable to fetch secret names
Doppler Error: You must specify a config
➜ doppler secrets --project=my_project --config=dev --only-names

┌────────────────────────────────────┐
│ NAME                               │
├────────────────────────────────────┤
│ SECRET_KEY                         │
└────────────────────────────────────┘

Expected behavior

with cli v3.56.2 :
➜ cd <folder>
➜ doppler setup --token=*** --project=my_project --config=dev
➜ doppler secrets --only-names

┌────────────────────────────────────┐
│ NAME                               │
├────────────────────────────────────┤
│ SECRET_KEY                         │
└────────────────────────────────────┘

Desktop (please complete the following information):

CLI Version: Version 3.57.0

Gabrielpanga commented 1 year ago

Also since we are using doppler directly on GH actions and automatically updates to latest version of cli, without the ability to specify the cli version, this is breaking all our pipelines.

glarivie commented 1 year ago

I don't have the problem with interactive setup. Only when using cli with arguments.

Piccirello commented 1 year ago

Duplicate of #385