DotnetManageSecrets 0.11.1

dotnet tool install --global DotnetManageSecrets --version 0.11.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local DotnetManageSecrets --version 0.11.1
                    
This package contains a .NET tool you can call from the shell/command line.
#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!

.NET JSON YAML XML TOML Windows macOS Linux FreeBSD NuGet

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.

Visual Studio's secrets editor

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:

Using Visual Studio to edit user secrets in YAML format <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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.11.1 108 1/30/2026
0.11.0 92 1/30/2026
0.9.1 108 1/12/2026
0.9.0 685 12/2/2025
0.8.2 580 12/1/2025
0.7.2 309 11/21/2025
0.6.2 424 11/20/2025
0.5.0 413 11/18/2025
0.4.0 263 11/14/2025
0.3.1 290 11/13/2025
0.2.1 277 11/10/2025
0.1.0 279 11/10/2025