UNPKG

atikin-env-toolkit

Version:

Smart .env manager with validation, encryption, and multi-env switching. Created by Atikin Verse.

33 lines (25 loc) 714 B
#!/usr/bin/env node const { Command } = require('commander'); const { validateEnv, encryptEnv, decryptEnv, switchEnv } = require('./core'); const program = new Command(); program .name('atikin-env-toolkit') .description('Smart ENV Manager CLI Tool') .version('1.0.0'); program .command('validate') .description('Validate .env file against schema') .action(validateEnv); program .command('encrypt') .description('Encrypt .env file') .action(encryptEnv); program .command('decrypt') .description('Decrypt .env file') .action(decryptEnv); program .command('switch <env>') .description('Switch to a specific environment (.env.dev, .env.prod)') .action(switchEnv); program.parse();