Requirements
Before you use service accounts with 1Password CLI, you need to:Get started
To use a service account with 1Password CLI:-
Set the
OP_SERVICE_ACCOUNT_TOKENenvironment variable to the service account token:- bash, sh, zsh
- fish
- Powershell
-
Run the following command to make sure the service account is configured:
Supported commands
You can now run supported 1Password CLI commands authenticated as the service account: To use the following commands, you must specify a vault with the--vault flag if the service account has access to more than one vault:
The following commands are only supported for vaults created by the service account:
Unsupported commands
Unsupported commands
When using a service account, the following commands aren’t supported:Although service accounts support some user, group, and vault management commands, we recommend against using them because a full provisioning workflow isn’t supported: