Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { spawn } = require('child_process');
const args = require('args');
const dotenv = require('dotenv');
const { logger } = require('../lib/utils');
const cwd = process.cwd();
args
.option(['f', 'force'], 'Temporarily overrides existing env variables with the ones in the .env file')
.option(['E', 'env'], 'Location of .env file relative from the current working directory', '.env')
.option('verbose', 'Enable verbose logging')
.option('encoding', 'Encoding of the .env file', 'utf8');
args.config.value = '