Skip to content

Manage and share your dotenv files with 1Password from your terminal

License

Notifications You must be signed in to change notification settings

Kinoba/dotenv-op

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotenv-op

Lint

Small utility to help our team work with all our projects secret files.

Requirements

Getting started

Homebrew

brew install kinoba/dotenv-op/dotenv-op

Manually

  • Change the following script variables according to your situation:
ONEPASSWORD_VAULT="[VAULT_NAME]"
ONEPASSWORD_ACCOUNT_SUBDOMAIN="[1P Account name]"
ONEPASSWORD_ACCOUNT_URL="https://$ONEPASSWORD_ACCOUNT_SUBDOMAIN.1password.eu"
ONEPASSWORD_ACCOUNT_EMAIL="[yourmeail@domaine.com]@$ONEPASSWORD_ACCOUNT_SUBDOMAIN.fr"
  • Place this script wherever you want in your PATH

Usage

Get a document

dotenv-op get -p project_name -e production

Create a document

./dotenv-op create -p project_name -e production -f /path/to/your/project_name/.env.production

Edit a document

./dotenv-op edit -p project_name -e production -f /path/to/your/project_name/.env.production

Edit a document directly inside your terminal

This will download the existing document on 1Password and open your favorite editor to edit it

./dotenv-op edit-inline -p project_name -e production

Compare a document directly inside your terminal

This will download the existing document on 1Password and compare it with your local version

./dotenv-op compare -p project_name -e production -f /path/to/your/project_name/.env.production

About

Manage and share your dotenv files with 1Password from your terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages