Skip to main content

A CLI tool with commands to help maintain .NET codebases.

Total Downloads
44.3K
44,287
Published
Aug 16, 2026
3mo ago

Get Started

dotnet add package Nerdbank.DotNetRepoTools --version 1.5.42

No framework information available.

README

repo CLI command

Commands

After install, use the tool name repo to run commands.

This CLI tool has a variety of commands and sub-commands, discoverable using the -h switch to discover commands, sub-commands, and switches.

$ repo -?

Description:
  A CLI tool with commands to help maintain .NET codebases.

Usage:
  repo [command] [options]

Options:
  --version       Show version information
  -?, -h, --help  Show help and usage information

Commands:
  graph <input> <output>  Builds an MSBuild project graph and writes it as DGML or Mermaid.
  nuget                   NuGet maintenance commands
  git                     Git repo maintenance workflows
  azdo                    Azure DevOps operations

You can then drill in to reveal sub-commands:

$ repo nuget -?

Description:
  NuGet maintenance commands

Usage:
  repo nuget [command] [options]

Options:
  -?, -h, --help  Show help and usage information

Commands:
  upgrade <id> <version>  Upgrade a package dependency, and all transitive dependencies such that no package downgrade warnings occur.
  trim <project>          Removes PackageReference items that are redundant because they are to packages that already appear as transitive dependencies.

Example usage

For example, the following command will upgrade the repo's Directory.Packages.props file to consume a new version of a particular package, and update all transitive dependencies that also have versions specified in that file, so that you do not have to manually upgrade those versions to resolve package downgrade errors:

repo nuget upgrade StreamJsonRpc 1.2.3

Downloads by Version

Depended On By

Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.