Skip to content

tinnguyentg/PSDotEnv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PSDotEnv

Powershell module that load, unload variables from dotenv files (manually)

Installation

Install-Module PSDotEnv

Import me in $PROFILE

Import-Module PSDotEnv

# Your other cool stuffs
# ...

Usage

Load variables from .env file (default)

> cd project
> Set-DotEnv -Verbose
VERBOSE: Checking .env exists
VERBOSE: Getting variables
VERBOSE: Setting foo

Load from a specific dotenv file

> cd project
> Set-DotEnv -Path .\.env.prod -Verbose
VERBOSE: Checking .env.prod exists
VERBOSE: Getting variables
VERBOSE: Setting foo

Unload dotenv

> cd project
> Redo-DotEnv -Path .\.env.prod -Verbose
VERBOSE: Checking .env.prod exists
VERBOSE: Getting variables
VERBOSE: Unsetting foo

About

Load, unload environment variables from dotenv files in PowerShell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •