Since I started to use Doppler I have been using the following command in my bash scripts, with $1,$2 and $3 being the values needed to get to a valid config
Does result in the value being returned from both my old and new configs. So there is a minor instability in the command line parser where the state/age of the config can cause the parser to miss the command to be processed unless it is the first parameter (or at least near the front of the list).
I tried that passing in a project and config that have existed for approaching a year at this point and it worked fine. I then created a brand new project and tested it using that and it worked fine too.
Could you provide me with some additional details?
What shell are you using and what version?
What CLI version are you using?
If you run your script in a vanilla Ubuntu container (i.e., docker run --rm -it ubuntu bash), do you observe the same behavior?
I’m pretty sure I know what it is - my project is called “secrets” so your CLI parser is not correctly parsing parameters as it scans the list provided.
So
place the command ‘secrets’ at the start of the command line and the parser correctly understands that it needs to process the parameters for the secrets command.
place --project at the start of the command line with a parameter of “secrets” and things start to go wrong.
I would guess that it will happen for all commands when they end up being used as parameters and the command is ordered in the way that I have done it - the only reason for that order was that it was based on an example posted by one of your team to a past question I had posted.
So there is a bug, but few people should come across it as they are more likely to follow the command line structure shown in the help text.
I actually tested another command (configs) and it didn’t trigger this behavior, so there is likely some special casing around the secrets command. We’ll look into it! Thanks for reporting this!
Edit: I take it back! It seems like the problem solely occurs when the value of the project or config parameter matches the command being run. So, you can use the secrets project or config if you’re executing doppler configs, but if you use doppler secrets it will fail to parse. Likewise, if you use configs as the project or config, doppler secrets will work, but doppler configs will not.