envelope - a command line utility and tool to help you manage your .env files

Overview

envelope

envelope is a command line utility and tool to help you manage your .env files.

How it works

envelope is basically a command line utility that leverages an SQLite database to keep track of your enviroment variables so that you can easily switch between different configurations.

Usage

Pretty print

Pipe .env files to envelope to get a pretty format representation of the file

$ cat .env | envelope

+-------------------+----------------------------------------------+
| VARIABLE          | VALUE                                        |
+-------------------+----------------------------------------------+
| DATABASE_URL      | postgres://user:password@localhost:5432/mydb |
+-------------------+----------------------------------------------+
| SECRET_KEY        | mysecretkey123                               |
+-------------------+----------------------------------------------+
| API_KEY           | your_api_key_here                            |
+-------------------+----------------------------------------------+
| DEBUG_MODE        | true                                         |
+-------------------+----------------------------------------------+
| SMTP_HOST         | smtp.example.com                             |
+-------------------+----------------------------------------------+
| AWS_ACCESS_KEY_ID | your_access_key_id                           |
+-------------------+----------------------------------------------+

Import

Import from .env file

$ envelope import dev .env
$ envelope list
+-------------+-------------------+----------------------------------------------+
| ENVIRONMENT | VARIABLE          | VALUE                                        |
+-------------+-------------------+----------------------------------------------+
| dev         | API_KEY           | your_api_key_here                            |
+-------------+-------------------+----------------------------------------------+
| dev         | AWS_ACCESS_KEY_ID | your_access_key_id                           |
+-------------+-------------------+----------------------------------------------+
| dev         | DATABASE_URL      | postgres://user:password@localhost:5432/mydb |
+-------------+-------------------+----------------------------------------------+
| dev         | DEBUG_MODE        | true                                         |
+-------------+-------------------+----------------------------------------------+
| dev         | SECRET_KEY        | mysecretkey123                               |
+-------------+-------------------+----------------------------------------------+
| dev         | SMTP_HOST         | smtp.example.com                             |
+-------------+-------------------+----------------------------------------------+

It's also possible to import directly from stdin

$ cat .env | envelope import prod

List

List env variables of a particular enviroment

$ envelope list dev
+-------------+-------------------+----------------------------------------------+
| ENVIRONMENT | VARIABLE          | VALUE                                        |
+-------------+-------------------+----------------------------------------------+
| dev         | API_KEY           | your_api_key_here                            |
+-------------+-------------------+----------------------------------------------+
+   ...       +      ...          +                   .......                    +
+-------------+-------------------+----------------------------------------------+
| dev         | SMTP_HOST         | smtp.example.com                             |
+-------------+-------------------+----------------------------------------------+

Export

Create a .env file with variables of a specific enviroment

$ envelope export prod

This will create a .env file containing all the variables that you have stored in your prod enviroment in envelope.

This makes it easy to switch between different configurations, need to use the prod envs? Just run envelope export prod, want to switch to your dev ones? Run envelope export dev and everything will be handled for you, for free.

You can also output to a specific file with the -o flag:

$ envelope export prod -o .env.prod

Add

Add env variables

$ envelope add local DB_CONNECTION https://example.com
$ envelope list local
+-------------+-------------------+-----------------------+
| ENVIRONMENT | VARIABLE          | VALUE                 |
+-------------+-------------------+-----------------------+
| local       | DB_CONNECTION     | https://examples.com  |
+-------------+-------------------+-----------------------+

Delete

Delete entire environments from envelope

$ envelope delete dev
$ envelope list dev
You might also like...
A small program that converts midi files to RPE (Re: Phigros Edit) Charts

Midi to RPE(Re: Phigros Edit) chart converter $ mid2json --help Usage: mid2json [OPTIONS] MIDI_PATH Arguments: MIDI_PATH Name of the input fil

A simple GUI rust application that keeps track of how much time you spend on each application.
A simple GUI rust application that keeps track of how much time you spend on each application.

TimeSpent A simple GUI rust application that keeps track of how much time you spend on each application. Installation Click here to download the Setup

Drumsthesia is a simple software that helps you to learn how to play the drums (or midi controllers).
Drumsthesia is a simple software that helps you to learn how to play the drums (or midi controllers).

Drumsthesia A shameless copy of Neothesia adapted for e-Drums. Youtube Video Binaries for MacOS, Linux (untested) and Windows (untested). Download Scr

Rust task runner and build tool.

cargo-make Rust task runner and build tool. Overview Installation Binary Release Usage Simple Example Tasks, Dependencies and Aliases Commands, Script

Your musical pokedex, Plex for music
Your musical pokedex, Plex for music

Musidex Your musical pokedex, Plex for music. Add songs from youtube videos or youtube playlist to your library, or import them from your local files.

Effortlessly beautify your Spotify playlists with just a single, enchanting script 💫 🎵

harmonia harmonia, effortlessly beautify your Spotify playlists with just a single, enchanting script. 💫 🎵 HANDLE WITH LOVE: Since harmonia is bloss

this tool visualizes audio input
this tool visualizes audio input

audiovis I tried to create a high quality classic audio visualiser with cpal as audio backend and wgpu as accelerated video frontend demo bar visualis

A tool that switch default audio playback device on windows.

AudioSwitch A tool built by Rust that can switch default audio playback device on windows. How to use specify which device you want to use Execute it

Tool for solving music harmonics written in rust.
Tool for solving music harmonics written in rust.

Harmonized Tool for solving harmonics tasks Installation steps Requirements Make shure you have installed rust cargo If not: Download and run rust ins

Owner
Mattia Righetti
Software Engineer
Mattia Righetti
A command line application to organize Spotify playlists.

Sortify A command line application to organize Spotify playlists. Using Sortify, you can choose a playlist as the source playlist, and then have the o

Francisco Cunha 4 Aug 14, 2024
Encrypt and decrypt files by playing melodies on your MIDI keyboard.

midicrypt Encrypt and decrypt files by playing melodies on your MIDI keyboard. Written in Rust. ❯ ./midicrypt -h midicrypt 0.1.0 NINNiT Encrypts and D

null 2 Jun 24, 2022
Polaris is a music streaming application, designed to let you enjoy your music collection from any computer or mobile device.

Polaris is a music streaming application, designed to let you enjoy your music collection from any computer or mobile device. Polaris works by streami

Antoine Gersant 1k Jan 9, 2023
A video player for your terminal that generates a standalone executable that plays your video.

Szmelc Player Szmelc Player is a program that converts any video you give it to a standalone executable that plays the video in the terminal. It uses

null 1 Jan 9, 2022
A small program to feed the audio from your QRP-Labs QDX digital transceiver through to your computer's speakers

A small program to feed the audio from your QRP-Labs QDX digital transceiver through to your computer's speakers. Also gives you a small user interface in which you can see a signal-strength meter, control the output volume coming from your speakers, and to tune the QDX to a particular frequency (receive SSB and other signals!).

Matt Gumbley 3 Jul 24, 2023
Program to check if stereo wav files have identical channels (faux-stereo) and convert them to mono.

zrtstr Command line application for checking WAV-files for identical channels, detecting faux-stereo files generated by some audio-editing software an

Kirill 22 Nov 6, 2022
Build custom songs for Pokémon Mystery Dungeon: Explorers of Sky from Soundfonts and MIDI files

skysongbuilder A tool to build custom songs for Pokémon Mystery Dungeon: Explorers of Sky from Soundfonts and MIDI files Features: Optimizations down

Adakite 3 Sep 23, 2023
Midnote is a terminal application that reads a MIDI file and displays you its notes bar-by-bar, while playing it.

MIDNOTE Midnote is a terminal application that reads a MIDI file and displays you its notes bar-by-bar, while playing it. Goals As a blind musician my

null 4 Oct 30, 2022
Simple personal server to serve audiofiles files from folders.

Simple personal server to serve audio files from directories. Intended primarily for audio books, but anything with decent directories structure will do. Focus here is on simplicity and minimalistic design.

Ivan Zderadicka 571 Dec 29, 2022
Tools for working with MIDI files - written by All the Music LLC for musicians.

Tools for Generating and Working with MIDI Files NOTICE: This repo is under construction and is not ready for use. Once it is ready, and the other rep

null 9 Nov 17, 2022