Hello, I'm trying to use
op get item populate environment variables at login rather than storing secrets and API tokens in clear text as part of .zshrc or .bash_profile. I'm noticing that it takes about 2.6 - 2.7sec to get the results of
op get item --fields <filed> <item_name>. While this is not a huge concern when getting one item I plan on getting at least five to create a full dev environment. For example, the item Google-Dev has standard username and password fields, as well as an API token which is saved to a text field named "Personal Access Token". I'm using the following command export the environment variable:
export YOUTUBE_DEV_KEY=$(op get item --fields "Personal Access Token" google-dev)
I have two major questions related to my use case:
jqto get what I really need.
op get itemrequest and I'm just impatient?
Any help or guidance is greatly appreciated. Thank you.
1Password Version: 1.6.0
Extension Version: Not Provided
OS Version: OS X 10.15.6
Sync Type: Not Provided