mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
1.3 KiB
1.3 KiB
1password-cli
Table of contents
TL;DR
# installation
brew install --cask '1password-cli'
# first login
op signin 'company.1password.com' 'user.name@company.com'
# subsequent logins
op signin 'company'
# automatically set environment variables
# needed to run the export command manually
eval "$(op signin 'company')"
# show all the items in the account
op list items
Gotchas
-
After you have signed in the first time, you can sign in again using your account shorthand, which is your sign-in address subdomain (in this example, company);
op signinwill prompt you for your password and output a command that can save your session token to an environment variable:op signin 'company' -
Session tokens expire after 30 minutes of inactivity, after which you'll need to sign in again
Further readings
Sources
All the references in the further readings section, plus the following:
- CLI getting started guide