Skip to main content

Use 1Password CLI with a Connect server

After you set up your Secrets Automation workflow and deploy 1Password Connect Server, you can use 1Password CLI with your Connect server to provision secrets and retrieve items on the command line.

Requirements

Before you can use 1Password CLI with your Connect server, you'll need to:

You can use the following commands with a Connect server:

Optional: Set up the CI environment

You can also use 1Password CLI with your Connect server in CI. 1Password CLI allows you to use secret references in place of plaintext secrets in code, which can be set up to pass different sets of secrets for different environments.

Secret references work well within infrastructure as code tools and CI configurations, because they can be defined alongside other configurations. For example:

.gitlab-ci.yml

To authenticate 1Password CLI in the pipeline, add the following environment variables to your CI configuration file:

.gitlab-ci.yml

Learn more

Replace plaintext secrets with secret references

Learn how to create and use secret references to avoid putting plaintext secrets in code.

Load secrets into the environment

Learn how to source secrets from the environment into your applications.

Load secrets into config files

Learn how to load secrets automatically into config files without putting any plaintext secrets in code.

Was this page helpful?