@mrck-labs/1password-env-integrator

1.2.1 • Public • Published

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

  1. Create the vault item with "envs" section img.png

  2. run the command

1password-env-integrator env name-of-the-vault-item

or

1password-env-integrator env-template name-of-the-vault-item

Readme

Keywords

none

Package Sidebar

Install

npm i @mrck-labs/1password-env-integrator

Weekly Downloads

0

Version

1.2.1

License

ISC

Unpacked Size

7.07 kB

Total Files

4

Last publish

Collaborators

  • marckraw