1password

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in, or reading/injecting/running secrets via op. Use when this capability is needed.

tomevault-io Updated

File contents

1Password CLI

Manage secrets through the 1Password CLI (op).

Setup

  1. Install: brew install 1password-cli
  2. Enable desktop app integration in 1Password preferences
  3. Sign in: op signin
  4. Verify: op whoami

Common Commands

# List vaults
op vault list

# Get an item
op item get "Item Name" --vault "Vault"

# Read a secret field
op read "op://Vault/Item/field"

# Run a command with secrets injected
op run --env-file=.env -- your-command

# Inject secrets into a template
op inject -i template.env -o .env

Best Practices

  • Use op run or op inject instead of writing secrets to disk
  • Never paste secrets into logs, chat, or code
  • Use --account flag for multi-account setups

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/kody-w--openrappter--1password commit 9eefd4f04f

Frequently asked questions

npx skillmds@latest add tomevault-io/1password-8