Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Nezteb
3 years agoNew Contributor
Feature Request: Generate random passwords with CLI via dedicated command (e.g. `op generate`)
There are a few past threads about this:
- December 2020: https://1password.community/discussion/117673/generating-passwords-with-the-cli
- March 2022: https://1password.community/discussion/1276...
Former Member
3 years agoMore temporary but if you are familiar with jq
https://stedolan.github.io/jq/manual/
op item create \
--dry-run \
--category Password \
--generate-password='letters,digits,symbols,32' \
--format json \
| jq -r '.fields[] | select(.id == "password").value'