envset 0.1.4

A command-line tool for setting environment variables in a .env file
envset-0.1.4 is not a library.
Visit the last successful build: envset-0.2.0

envset

envset is a command-line tool for setting environment variables in a .env file. It allows you to easily add or update environment variables without manually editing the .env file.

this cli was thrown together quickly with aider

Installation

You can install envset using Cargo:

cargo install envset

Usage

envset can be used in several ways:

  1. Set environment variables from command-line arguments:
envset KEY1=value1 KEY2=value2
  1. Set environment variables from stdin:
echo -e "KEY1=value1\nKEY2=value2" | envset
  1. Use a custom .env file location:
envset --file /path/to/.env KEY1=value1

By default, envset will create or update a .env file in the current directory. If you want to use a different file, you can specify it with the --file option.

For more information on available options, run:

envset --help