env-mod
v1.0.4
Published
CLI tool to set and get env variables
Downloads
3
Readme
env-mod
env-mod
is a Command Line Interface (CLI) tool built with Node.js and Commander for managing environment variables in a .env
file effortlessly.
Table of Contents
Installation
Make sure you have Node.js installed on your system. Then, install env-mod
globally using npm:
npm install -g env-mod
Usage
Setting Environment Variables
To set an environment variable in the .env
file, use the following command:
env-mod set KEY value
Getting Environment Variables
To retrieve the value of an environment variable from the .env
file, use:
env-mod get KEY
Deleting Environment Variables
To delete an environment variable from the .env
file, use:
env-mod delete KEY
Options
--help
: Display help for the command.--version
: Display the version ofenv-mod
.
Examples
# Set environment variable
env-mod set DATABASE_URL "mongodb://localhost:27017/mydb"
# Get environment variable value
env-mod get DATABASE_URL
# Delete environment variable
env-mod delete DATABASE_URL
Contributing
Contributions are welcome! To contribute to env-mod
, follow these steps:
- Fork the repository.
- Create a branch:
git checkout -b feature/new-feature
. - Make your changes and commit them:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin feature/new-feature
. - Submit a pull request.