Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dotenv-flow-cli

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-flow-cli

A cli executable to run commands with the ENV variables loaded by dotenv-flow

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

dotenv-flow-cli

This is a cli executable for dotenv-flow.

Installing

Either install it globally:

$ npm install -g dotenv-flow-cli

or add to your project:

Yarn

$ yarn add dotenv-flow-cli

NPM

$ npm install dotenv-flow-cli

Usage

$ dotenv-flow <command with arguments>

This will load the variables from the .env* files in the current working directory and then run the command (using the new set of environment variables).

For more information about how the .env* files are loaded, please refer to dotenv-flow docs.

Custom path

You may specify a path where your .env* files are located with the -p option:

$ dotenv-flow -p path/to/project <command with arguments>

Arguments to the underlying command

Put -- separator before the command if it takes additional arguments, otherwise they might get lost.

$ dotenv-flow -- my-command -p something

Variable expansion

To allow it to be a drop-in replacement for dotenv-cli variable interpolation (expanding) is automatically enabled using dotenv-expand under the hood.

For example:

IP=127.0.0.1
PORT=1234
APP_URL=http://${IP}:${PORT}

Using the above example .env file, process.env.APP_URL will be resolved to http://127.0.0.1:1234.

FAQs

Package last updated on 07 Jan 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc