1Password
  • 10 Apr 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

1Password

  • Dark
    Light

Article summary

The 1Password CLI brings 1Password to the terminal, allowing you to interact with a 1Password instance from LimaCharlie.

This extension makes use of 1Password's native CLI, which can be found here.

1Password Account Types

Please note that some 1Password functionality is limited to 1Password Business. Please validate you have the correct type of account(s) to ensure that commands run.

Example

Returns a list of all items the account has read access to by default.

- action: extension request
  extension action: run
  extension name: ext-cloud-cli
  extension request:
    cloud: '{{ "op" }}' 
    command_line: '{{ "item list" }}'
    credentials: '{{ "hive://secret/secret-name" }}'

Credentials

To utilize 1Password's automated CLI capabilities, you will need to create and utilize a Service Account. More information can be found here.

  • Create a secret in the secrets manager in the following format:
serviceAccountToken

Was this article helpful?

What's Next