infisical icon indicating copy to clipboard operation
infisical copied to clipboard

A cli command that prints only the value to stdout

Open muratgozel opened this issue 1 year ago • 3 comments

Feature description

A cli command that outputs only the secret by its key. Consider we have a secret like KEY=abc. With a possible implementation:

infisical secrets read KEY
# outputs:
abc

Why would it be useful?

It would give us more functionality in our deployment or other kind of scripts. We can do things like:

my_key=$(infisical secrets read KEY)

Additional context

Considering we already have infisical secrets get KEY, shouldn't be too difficult to implement this. 👀

muratgozel avatar Jan 30 '24 10:01 muratgozel

I've often seen that feature more like a parameter : infisical secrets get MY_VAR --plain. Wdyt?

Grraahaam avatar Jan 30 '24 16:01 Grraahaam

thats totally okay imo

muratgozel avatar Jan 30 '24 17:01 muratgozel

@maidul98 @akhilmhdh I think this issue can be closed as resolved, thanks to : https://github.com/Infisical/infisical/pull/1532

And https://github.com/Infisical/infisical/pull/1383 might needs to be reviewed and edited to address further fixes

Grraahaam avatar Mar 14 '24 10:03 Grraahaam