🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

dotenvx-interactive-cli

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenvx-interactive-cli

An interactive CLI tool for managing .env files with dotenvx - encrypt, decrypt, and manage environment variables with ease.

Source
npmnpm
Version
0.2.3
Version published
Weekly downloads
36
414.29%
Maintainers
1
Weekly downloads
 
Created
Source

dotenvx-interactive-cli

An interactive CLI tool for managing your .env files with dotenvx. This tool provides a user-friendly interface for encrypting and decrypting environment files, as well as setting up precommit hooks.

Why?

This tool was created to simplify the process of working with dotenvx encryption and decryption. Instead of typing long commands or remembering specific syntax, you can quickly:

  • Select which .env files to encrypt or decrypt through an interactive menu
  • Avoid typing lengthy dotenvx commands manually
  • Selectively encrypt or decrypt specific files when working with multiple .env files
  • Set up precommit hooks with a single command

Prerequisites

  • Node.js (v16 or higher)
  • dotenvx must be installed globally (npm install -g @dotenvx/dotenvx)

Installation

You can install this package globally:

npm install -g dotenvx-interactive-cli

Or use it directly with npx:

npx dotenvx-interactive-cli

Features

  • 🔒 Interactive encryption of .env files
  • 🔓 Interactive decryption of .env files
  • 🪝 Easy precommit hook installation
  • ✨ User-friendly selection interface for multiple .env files
  • 🔍 Automatic .env file detection
  • ⚡ Validation of dotenvx installation and required files

Usage

  • Navigate to your project directory where your .env files are located
  • Run the CLI tool:

When installed globally:

dotenvx-interactive

or use npx:

npx dotenvx-interactive-cli
  • Choose from the available options:
    • Encrypt .env files
    • Decrypt .env files
    • Install precommit hook
    • Exit

Requirements

  • A .env.keys file must be present in your project directory
  • dotenvx must be installed globally

License

MIT

Contributing

Contributions, issues, and feature requests are welcome!

Keywords

cli

FAQs

Package last updated on 27 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts