import-dotenv

1.0.0

Loads .env files from hierarchy into current session

Minimum PowerShell version

5.0

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name import-dotenv

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name import-dotenv

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Nikolay Buslaev

Tags

dotenv environment variables PowerShell .env configuration

Functions

Import-DotEnv

Dependencies

This module has no dependencies.

Release Notes

Version 1.0.0
- Initial release
- Variable substitution support ($VAR and ${VAR})
- Double and single quote handling
- Bash-compatible escape sequence handling (\n kept literal in double quotes)
- Windows environment variables support
- Recursive variable expansion
- Cycle detection for infinite loop prevention
- Multiline value support (quoted strings and backslash continuation)
- $'...' syntax for escape sequence interpretation

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 5 2/26/2026