![]() |
VOOZH | about |
dotnet add package dotenv-vault.net --version 0.0.4
NuGet\Install-Package dotenv-vault.net -Version 0.0.4
<PackageReference Include="dotenv-vault.net" Version="0.0.4" />
<PackageVersion Include="dotenv-vault.net" Version="0.0.4" />Directory.Packages.props
<PackageReference Include="dotenv-vault.net" />Project file
paket add dotenv-vault.net --version 0.0.4
#r "nuget: dotenv-vault.net, 0.0.4"
#:package dotenv-vault.net@0.0.4
#addin nuget:?package=dotenv-vault.net&version=0.0.4Install as a Cake Addin
#tool nuget:?package=dotenv-vault.net&version=0.0.4Install as a Cake Tool
👁 NuGet version
👁 Nuget downloads
Extends the proven & trusted foundation of dotenv, with a .env.vault file.
The extended standard lets you sync your .env files – quickly & securely. Stop sharing them over insecure channels like Slack and email, and never lose an important .env file again.
Follow these steps to install both of these libraries:
If you want to add library reference manually then add this line to your csproj file:
<PackageReference Include="dotenv-vault.net" Version="0.0.1"/>
If you're using the Visual Studio package manager console, then run the following:
Install-Package dotenv-vault.net
If you are making use of the dotnet CLI, then run the following in your terminal:
dotnet add package dotenv-vault.net
Ensure you have declared the necessary namespace at the head of your class file:
using dotenv_vault.net;
Calling the Load() method with no parameters would locate and load the .env file in the same directory that the library is if one exists:
DotEnvVault.Load();
If you want to be notified of exceptions that occur in the process of loading env files then you can specify that via the configuration options:
DotEnvVault.Load();
The default is .env
The defaults are true and 4 directories up
The default encoding is UTF-8
The default to trim whitespaces is false
The default to skip overwriteing an environment variable is true
You need a Dotenv Account to use Dotenv Vault. It is free to use with premium features.
<br> <br>
Visit health.dotenv.org for more information.
DOTENV_KEY is not set?Dotenv Vault gracefully falls back to dotenv.net when
DOTENV_KEYis not set. This is the default for development so that you can focus on editing your.envfile and save thebuildcommand until you are ready to deploy those environment variables changes.
.env file?No. We strongly recommend against committing your
.envfile to version control. It should only include environment-specific values such as database passwords or API keys. Your production database should have a different password than your development database.
.env.vault file?Yes. It is safe and recommended to do so. It contains your encrypted envs, and your vault identifier.
DOTENV_KEY?No. It is the key that unlocks your encrypted environment variables. Be very careful who you share this key with. Do not let it leak.
git checkout -b my-new-feature)git commit -am 'Added some feature')git push origin my-new-feature)See
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.1 netcoreapp3.1 is compatible. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
Intial release