| name | using-1password |
| description | Create, retrieve, and share 1Password items using the op CLI. Use when creating secure notes, storing credentials, generating shareable links, or looking up vault contents. |
1Password CLI (op)
Create and share 1Password items without leaving the terminal.
Quick Examples
op vault list
op item create \
--category "Secure Note" \
--title "My Note" \
--vault "Engineering" \
'notesPlain=line one\nline two'
op item share "My Note" --vault "Engineering"
op item share "My Note" --vault "Engineering" --expires-in 7d
op item share "My Note" --vault "Engineering" --view-once
op item get "My Note" --vault "Engineering"
op item list --vault "Engineering"
Shareable Links
op item share generates a https://share.1password.com/... URL anyone can open in a browser — no 1Password account needed. Default expiry is 7 days; use --expires-in to adjust (e.g. 1d, 7d, 14d, 30d). Use --view-once to expire the link after a single view.
Creating Notes with Multiline Content
Use a heredoc to avoid shell escaping issues:
op item create \
--category "Secure Note" \
--title "My Note" \
--vault "Engineering" \
"notesPlain=$(cat <<'EOF'
Line one
Line two
Line three
EOF
)"
Authentication
op signin
op whoami
op signout
More Info
See REFERENCE.md for field types, tagging, and advanced patterns.