Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
XIII
4 years agoSuper Contributor
[13] Can the 1Password CLI replace dotenv (on Raspberry Pi)?
On my Raspberry Pi I use dotenv to store some credentials, but I don't feel comfortable storing credentials in plain text on the SD card of that machine.
Would I be able to use the 1Password CLI i...
1P_Simon
1Password Team
4 years agoHi XIII,
Yes, the new environment file functionality in the op run command supports the full syntax of dotenv files. On top of that, you can replace plaintext values with https://developer.1password.com/docs/cli/secrets-reference-syntax, exactly for the reason you describe, to avoid storing credentials in plain text. Instead you'll use https://developer.1password.com/docs/cli/secrets-environment-variables to pass these secrets directly to the runtime of your scripts.
To authenticate, you currently indeed have to https://developer.1password.com/docs/cli/sign-in. This currently works the same as it did in version 1 of the CLI. We're working on making this easier for you on your own device by making it possible to log in using your fingerprint.
For automated use cases like the one you have, we're considering to add service accounts. Service accounts would represent a service and authenticate as that service using a credential. Would this be useful for you?