op-env
v1.0.2
Published
Get and set environment variables in 1password
Downloads
2
Maintainers
Keywords
Readme
OP-ENV
op-env is a project that uses the 1password cli (op) to convert a secure note in a 1password vault to a local .env file with plain text secrets (for development purposes) and a .env.secrets file with references to 1password entries which you can use in ci.
Contents
Usage
Get op-env get -- -n -e -n, --name Name of the item -e, --environment Environment to create the item in
Set op-env set -- -v -f -t -v, --vault Vault to create the item in -f, --env-file Path to the env file -t, --title Title of the item
Development
# Run in development mode
npm run dev
Production
# Create a production build
npm run build
# Run the production build
npm run start
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.