Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbh-tech/envi
A Golang-based helper tool to generate environment files (.env*).
https://github.com/gbh-tech/envi
cli dot-env generator go
Last synced: about 9 hours ago
JSON representation
A Golang-based helper tool to generate environment files (.env*).
- Host: GitHub
- URL: https://github.com/gbh-tech/envi
- Owner: gbh-tech
- Created: 2024-09-12T18:12:01.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T18:54:43.000Z (26 days ago)
- Last Synced: 2024-10-24T03:29:27.170Z (26 days ago)
- Topics: cli, dot-env, generator, go
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Envi CLI
## Contents
- [📘 Description](#-description)
- [Features](#features)
- [🚢 Installation](#-installation)
- [🔧 Usage](#-usage)
- [Commands](#commands)
- [Examples](#examples)
- [🤝 Contributing](#-contributing)
- [📄 License](#-license)## 📘 Description
Envi CLI is a command-line tool designed to generate .env files using various providers, including Werf and 1Password.
### Features
- **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.## 🚢 Installation
To install Envi CLI from the source, follow these steps:
```bash
curl -s -L https://github.com/gbh-tech/envi/releases/download/v0.3.0/envi-darwin-x64.tar.gz | tar xz
chmod +x envi
sudo mv envi /usr/local/bin
```## 🔧 Usage
Once installed, you can use the envi command to generate .env files based on Werf or 1Password.
### Commands
werf: Generate a .env file using Werf configurations.
1pass: Generate a .env file using 1Password secrets.
help: Display help information about any command.### Examples
To generate a .env file using Werf:
```bash
./envi werf -e stage -o .env
```To generate a .env file using 1Password:
```bash
./envi op -v vault-id -i item-id -o .env
```## 🤝 Contributing
Contributions are welcome! Please follow these steps to contribute:
1. Fork the repository.
2. Create a new branch (git checkout -b feature-branch).
3. Make your changes.
4. Commit your changes (git commit -m 'Add new feature').
5. Push to the branch (git push origin feature-branch).
6. Open a Pull Request.## 📄 License
This project is licensed under the MIT License. See the LICENSE file for details.