Skip to main content

read

Read the value of the field in 1Password specified by a secret reference.

Learn more about secret references and query parameters.

Flags

Examples

Print the secret saved in the field password, on the item db, in the vault app-prod:

Use a secret reference with a query parameter to retrieve a one-time password:

Use a secret reference with a query parameter to get an SSH key's private key in the OpenSSH format:

Save the SSH key found on the item ssh in the server vault as a new file key.pem on your computer:

Use op read in a command with secret references in place of plaintext secrets:

Was this page helpful?