CLI: get a secret by its key?

Would it make sense to be able to get a secret value by providing the key instead of the entry ID? The Developer Quick Start | Bitwarden Help Center shows using just the ID which feels a bit unnatural compared to say HashiCorp’s vault kv get.

One of the solutions I can imagine would be to add e.g. a --key option to the get secret command e.g. as follows:

export SECRET_1=$(bws get secret --key secret_1)
1 Like