REMINDER: the community will be in read-only mode from tomorrow until July 2nd. This is part of our platform upgrade! Learn more in the FAQs →
Forum Discussion
tom_isaacson
10 days agoNew Contributor
No environment support in Linux
I tried following the instructions at https://www.1password.dev/cli/secrets-environment-variables. It says "use version 2.33.0-beta.02 or later" and I have 2.34.1 on Ubuntu but I get: $ op run --env...
tom_isaacson
3 hours agoNew Contributor
Reponse from 1Password:
The --environment flag for op run is currently only available in beta builds of 1Password CLI, not in stable releases.
Version 2.34.1 does not include this flag. To use this feature, you need to install the latest beta build from: https://app-updates.agilebits.com/product_history/CLI2#betaBefore installing the beta version, ensure you remove the stable 1password-cli package, as keeping both can cause version conflicts. Also when switching to beta CLI build, and existing authentication is not carried over, you will need to re-authenticate on the beta build using one of the following methods:
Desktop app integration: Ensure Integrate with 1Password CLI is enabled in the 1Password app under *Settings > Developer*, then the CLI will authenticate automatically.
Service account: Re-export the service account token: export OP_SERVICE_ACCOUNT_TOKEN=<token>
Manual sign-in: Run op signin in the terminal.
I copied the beta op to /usr/bin/op then ran op signin and that fixed it.