1.0.11 • Published 12 months ago

env-encryptor v1.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

🔐 Env Encryptor

env-encryptor is a CLI tool for securely encrypting, decrypting, and managing .env files with cloud storage integration.

📦 Installation

To install this package globally, run:

npm i env-encryptor

🚀 Usage

Options

OptionDescription
-h, --helpDisplay help for command

Commands

CommandDescription
generate-keyGenerate an encryption key securely
encrypt <file>Encrypt a .env file
decrypt <file>Decrypt an encrypted .env file
push [options] [file]Upload an encrypted file to cloud storage
pull [options] [file]Download an encrypted file from cloud storage
delete [options] [file]Delete a specific file from cloud storage
listList all uploaded files in cloud storage
set-api-url <url>Set the API URL for cloud storage
get-api-urlGet the API URL for cloud storage
help [command]Display help for a specific command

🔑 Generate an Encryption Key

To encrypt a .env file, run:

npx envim encrypt .env

The encrypted file will be saved as .env.enc.

🔓 Decrypt an Encrypted .env File

To decrypt .env.enc back to .env:

📤 Upload an Encrypted File to Cloud Storage

To upload .env.enc to the cloud storage:

npx envim push ``.env.enc``

To upload all encrypted files in the directory:

npx envim push --all

📥 Download an Encrypted File from Cloud Storage

To download .env.enc from the cloud storage:

npx envim pull ``.env.enc``

To download all encrypted files available in cloud storage:

npx envim pull --all

❌ Delete a File from Cloud Storage

To delete a specific file from cloud storage:

npx env-manager delete .env.enc

To delete all files from cloud storage:

npx env-manager delete --all

📂 List Uploaded Files

To list all files currently stored in cloud storage:

npx env-manager list

⚙️ Set API URL for Cloud Storage

To configure the API endpoint used for uploading and downloading files:

npx env-manager set-api-url https://your-api.com

To retrieve the currently set API URL:

npx env-manager get-api-url

🛠 Troubleshooting

If you encounter issues, check the available commands:

npx env-manager --help

Check the installed version:

npx env-manager --version

📜 License

Created by : Abdillah AG MIT License © 2025 env-manager


This README.md is now fully structured, in English, and formatted entirely in Markdown. 🚀✨

1.0.11

12 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago