env_cli
v1.0.3
Published
A lightweight CLI tool to perform CRUD operations on .env files directly from the terminal
Maintainers
Readme
CLI Application for CRUD Operations in .env File
A simple CLI tool to manage .env files directly from the terminal.
📦 Features
- Set key-value pairs
- Get specific or all values
- Delete specific or all keys
- Run Node.js files with environment variables
🚀 Installation
npm install -g env_cli🛠 Usage
View all commands
env_cli -help🔧 Set a value
If the key already exists, its value will be replaced. If the key is new, it will be added.
env_cli set PORT="3000"📥 Get keys
Get a single key
env_cli get PORTGet all keys
env_cli get🗑 Delete keys
Delete a single key
env_cli del PORTDelete all keys
env_cli del▶️ Run a JS file with .env values
env_cli run ./fileName.js⚠️ Notes
- Keys are case-sensitive
- Values are stored as strings
