EnvConvert 1.1.0
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
dotnet tool install --global EnvConvert --version 1.1.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local EnvConvert --version 1.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=EnvConvert&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package EnvConvert --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EnvConvert
.NET CLI tool for converting JSON into various environment variables format.
Installation
View EnvConvert package on NuGet
# Example: Install as a global tool
dotnet tool install --global EnvConvert
Usage
dotnet tool envconvert
envconvert # If `$HOME/.dotnet/tools` is added to PATH
> envconvert --help
Description:
CLI Tools for converting configurations into environment variables format
Usage:
EnvConvert [command] [options]
Options:
-f, --file <file> Path to the input file
-o, --out <out> Name of the output file [default: STDOUT]
--format <docker|dotenv|yaml> Output format [default: dotenv]
--yaml-format <azureappsettings|dockercompose|kubernetes> YAML Subformat (only valid for `--format yaml`) [default: dockercompose]
-s, --separator <colon|underscore> Nested value separator [default: colon]
--include-empty Include empty values [default: True]
--version Show version information
-?, -h, --help Show help and usage information
Commands:
json Convert from JSON format
Convert from JSON
Input file: input.json
{
"ConnectionStrings": {
"DefaultConnection": "Database=master;Server=(local);Integrated Security=SSPI;"
},
"Property": "Value",
"Tags": [".NET", { "Type": "Tools" }]
}
Convert from JSON with default options
> envconvert json --file input.json --out output
Output file: output
ConnectionStrings=
ConnectionStrings:DefaultConnection=Database=master;Server=(local);Integrated Security=SSPI;
Property=Value
Tags=
Tags:0=.NET
Tags:1=
Tags:1:Type=Tools\n
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.