DotnetManageSecrets 0.11.1
dotnet tool install --global DotnetManageSecrets --version 0.11.1
dotnet new tool-manifest
dotnet tool install --local DotnetManageSecrets --version 0.11.1
#tool dotnet:?package=DotnetManageSecrets&version=0.11.1
nuke :add-package DotnetManageSecrets --version 0.11.1
dotnet-manage-secrets
Manage your .NET user secrets using your format and editor of choice!
Installation
Install as a .NET tool:
dotnet tool install -g DotnetManageSecrets
Alternatively, download the latest binaries from CI (for Linux x64, Windows x64/x86).
Or build, pack, and install from source:
git clone https://github.com/brunt-toast/dotnet-manage-secrets; cd dotnet-manage-secrets; make install
About
User Secrets are a great tool to manage sensitive configuration options while minimising the risk of accidentally committing them to version control, but the dotnet user-secrets command can be unintuitive and slow to use.
This tool is inspired by the Visual Studio secrets editor, which allows you to edit the underlying secrets file (~/.microsoft/usersecrets/<GUID>/secrets.json) directly, but only using its native "flattened json" format, and only for project types supported by the Connected Services feature.
This tool makes the experience far more intuitive by presenting the data in more sensible formats, such as nested JSON or YAML.
<p float="left"> <img src="assets/vsNestedSecrets.png" width="49%" style="vertical-align: top;" /> <img src="assets/vsYamlSecrets.png" width="49%" style="vertical-align: top;" /> </p>
Additionally, it extends compatibility to all major editors - just set $EDITOR or pass --editor|-e. Here it is working with Neovim:
<sup>Legend has it that this author was stuck in vim forever more...</sup>
License
This tool is published under the MIT License.
Credits
Badges from inttter/md-badges
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
This package has no dependencies.