@mrck-labs/1password-env-integrator
v1.2.1
Published
This is the tool that uses `1password` CLI to integrate with environment variables. It is running official 1password CLI to fetch the secrets and set them as environment variables.
Downloads
2
Readme
1password-env-integrator
This is the tool that uses 1password
CLI to integrate with environment variables. It is running official 1password CLI to fetch the secrets and set them as environment variables.
The CLI is doing more or less the same thing as op
command, that is being used here: https://developer.1password.com/docs/cli/secret-references/
IT has 2 modes:
- env - saving envs directly into the
.env
file (no custom file names yet) - env-template - saves it into the
.env-template
with the format provided by 1password docs, example:AWS_ACCESS_KEY_ID="op://development/aws/Access Keys/access_key_id"
Installation
https://developer.1password.com/docs/cli/get-started/ to install the official 1password CLI and authorize your 1password
then install 1password-env-integrator
npm install -g @mrck-labs/1password-env-integrator
Usage
Create the vault item with "envs" section
run the command
1password-env-integrator env name-of-the-vault-item
or
1password-env-integrator env-template name-of-the-vault-item