Hacker News new | ask | show | jobs
by timenova 851 days ago
For people storing One-Time Passwords in 1Password, you can access them in the terminal too:

    op item get <item_name> --otp
To copy to clipboard just use pbcopy or xclip:

    op item get <item_name> --otp | pbcopy        # MacOS
    op item get <item_name> --otp | xclip -sel c  # Linux
1 comments

I like 1Password `op run` which works without copying. You put environment variables in your code, and when run with `op run` these variables are replaced on runtime with the actual credentials:

https://developer.1password.com/docs/cli/secret-references/#...