Dot Env Generator CLI is a command-line tool designed to generate .env files using various providers, including Werf and 1Password.
- Create .env with Werf: Generate environment files based on configurations managed by Werf.
- Create .env with 1Password: Securely generate environment files using secrets stored in 1Password.
To install Dot Env Generator CLI from the source, follow these steps:
curl -s -L https://github.com/gbh-tech/dot-env-generator/releases/download/v0.3.0/dot-env-generator-darwin-x64.tar.gz | tar xz
chmod +x dot-env-generator
sudo mv dot-env-generator /usr/local/bin
Once installed, you can use the dot-env-generator command to generate .env files based on Werf or 1Password.
werf: Generate a .env file using Werf configurations. 1pass: Generate a .env file using 1Password secrets. help: Display help information about any command.
To generate a .env file using Werf:
./dot-env-generator werf -e stage -o .env
To generate a .env file using 1Password:
./dot-env-generator op -v vault-id -i item-id -o .env
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes.
- Commit your changes (git commit -m 'Add new feature').
- Push to the branch (git push origin feature-branch).
- Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.