Release: CLI Improvements for Secrets & Feature Flags
Our CLI is more awesome now and I think you'll love it too.
CLI's for Busy People
I like CLIs, but I also find them frustrating. What are the options? Which options go together? I always reach for a CLI when I want something to happen RIGHT NOW, but then it's a process of reading the help page and trying to piece together an argument string.
I get it working and then promptly forget before the next time I need it.
With this in mind, we've retooled the CLI to meet you where you are. Know just what you need? Use the arguments. Can't be bothered? Just type prefab
, and we'll work through things together.
Here's what it looks like to change a feature flag now.
What would you like to do today?
We've pulled together the common operations that you might want to do so you can just search through them with autocomplete. Is it "set" or "update"? Type either, and you'll still find it.
What flag are we using?
Can't remember that flag name? Autocomplete to the rescue again.
And what environment are we in?
Stop typing our --env=staging all the time. Type "sta" enter, and you're on your way.
And what would you like to set the value to?
Now, just pick the new value, and you're off to the races.
Wrap
That's it.
We have similar helpers to create a new secret with our secret management. This video has a lot of good examples of this CLI in action for secrets
Install with npm install -g @prefab-cloud/prefab
to get going or read more about the cli or secret management.