A CLI tool for managing environment variables with 1Password.
- Import environment variables from .env files into 1Password
- Export environment variables from 1Password to .env files
- Run commands with environment variables from 1Password
- Supports multiple environments (production, staging, etc.)
- Integrates with various deployment platforms (GitHub, Netlify, Vercel, etc.)
go install github.com/hinterland-software/openv@latestbrew tap hinterland-software/openv
brew install openvFor detailed usage instructions and command examples, please refer to the OpenV Documentation.
- Go 1.24 or later
- Make
make buildopenv requires a 1Password service account token. You can provide it in three ways:
- Via the
--op-tokenflag - Via the
OPENV_OP_TOKENenvironment variable - Via interactive prompt
Create a config file at ~/.openv.yaml to set default values:
opToken: op-service-account-token
vault: my-vault-nameEnvironment variables can be set in the config file or passed as flags.
export OPENV_OP_TOKEN=op-service-account-tokenopenv supports different verbosity levels for logging:
--verboseor-v: Enable debug logging with detailed information--quietor-q: Suppress all output except errors- Default: Normal information level logging
Example with verbose logging:
openv export --url github.com/org/repo --env production -vExample with quiet logging:
openv export --url github.com/org/repo --env production -qContributions are welcome! Please open an issue or submit a pull request.
MIT
- Store your 1Password service account token securely
- Use environment variables or config files with appropriate permissions
- Avoid logging sensitive data when using verbose mode
- Review environment variables before syncing with deployment platforms
- Keep the CLI and its dependencies updated
For security issues, please email mail@hinterland.software or use GitHub's security advisory feature. Do not report security vulnerabilities through public GitHub issues.