En

Envelope – A modern environment variable cli tool

Hacker News

Envelope – A modern environment variable cli tool

Hey HN! I've built this cli tool to manage env variables of a project, but mostly for fun and to try out Rust and the clap crate. I had this idea when I made a big mistake and broke some production stuff because I had a very messy .env file laying around in my project. I was implementing new features for one of my projects and in my .env file I had the test database url commented out and the production one was not. Long story short, I applied migrations to the production database instead of my local test one and broke a lot of production APIs :') I wanted a tool that could easily help me spot these issues before something bad happened, and so I built envelope for that reason. Instead of a \.env(\..+)? file, I now use this tool to add variables to different configurations: dev, prod etc. and I feed them to the program I am executing on a one liner. $ envelope init $ envelope add dev db_url localhost:5432/postgres $ envelope add dev db_username username $ envelope add dev db_pwd pwd $ export $(envelope list dev) $ ./run.sh This way I am explicitly exporting the dev environment without relying on the fact that everything is in order in my .env file (another approach would be to have a .env.dev file) A very useful feature that I use quite a lot is the `check` command which is going to tell you which environment you have currently active $ export $(envelope list dev) $ envelope check > dev I don't think this tool is going to be useful to anybody, but I wanted to share this with you in case there is someone that can make good use of it or find particular scenarios where this could be used instead of .env files, either way I had a lot of fun building it

Share card

Actual performance

103points
55comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: user, new, apis · Missing: mac, agents, macos
88%88% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: ios · Missing: supports, reddit linkedin, podcasting
82%82% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
43%43% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: ios, way · Missing: mobile apps, personal, entrepreneurs
31%31% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
31%31% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: active · Missing: arr, mrr, revenue
16%16% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

CL
CLI tool to find and configure RaspberryPis over the LAN45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CLI tool to find and configure RaspberryPis over the LAN

Hacker News5
Wd
Wd, CLI tool for WebDriver39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Wd, CLI tool for WebDriver

Hacker News1
Du
Dutyme – CLI tool to assign PagerDuty on-call to you while operation28%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Dutyme – CLI tool to assign PagerDuty on-call to you while operation

Hacker News3
CL
CLI Tool for BigQuery Migrations30%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CLI Tool for BigQuery Migrations

Hacker News1
Gi
Gig – CLI Tool for .gitignores54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Gig – CLI Tool for .gitignores

Hacker News2
Fi
Findlike – TF-IDF as a CLI Tool39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Findlike – TF-IDF as a CLI Tool

Hacker News2
As
AskOpenAI – CLI Tool37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AskOpenAI – CLI Tool

Hacker News4
Se
Sendenv, a CLI tool to share environment variables58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Sendenv, a CLI tool to share environment variables

Hacker News83
Ws
Ws – A simple WebSocket cli tool50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ws – A simple WebSocket cli tool

Hacker News5
Ja
Java CLI Tool Built with GraalVM33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Java CLI Tool Built with GraalVM

Hacker News3