{"id":13593828,"url":"https://github.com/AArnott/DotNetRepoTools","last_synced_at":"2025-04-09T05:32:21.488Z","repository":{"id":152315450,"uuid":"608779970","full_name":"AArnott/DotNetRepoTools","owner":"AArnott","description":"A CLI tool with commands to help maintain .NET codebases","archived":false,"fork":false,"pushed_at":"2025-04-05T22:53:24.000Z","size":1081,"stargazers_count":17,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-05T23:25:00.628Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://aarnott.github.io/DotNetRepoTools/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AArnott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["aarnott"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2023-03-02T18:10:03.000Z","updated_at":"2025-04-01T00:35:04.000Z","dependencies_parsed_at":"2024-01-13T16:23:37.745Z","dependency_job_id":"12c4f452-9291-4b36-8bc3-3cb570dbb1a1","html_url":"https://github.com/AArnott/DotNetRepoTools","commit_stats":{"total_commits":630,"total_committers":10,"mean_commits":63.0,"dds":0.6984126984126984,"last_synced_commit":"61147d8a79b47f49e555d4d7f4c5fa4c84466ad6"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":"AArnott/Library.Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AArnott%2FDotNetRepoTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AArnott%2FDotNetRepoTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AArnott%2FDotNetRepoTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AArnott%2FDotNetRepoTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AArnott","download_url":"https://codeload.github.com/AArnott/DotNetRepoTools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247986964,"owners_count":21028890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T16:01:25.139Z","updated_at":"2025-04-09T05:32:21.479Z","avatar_url":"https://github.com/AArnott.png","language":"C#","readme":"# Nerdbank.DotNetRepoTools\n\n***A CLI toolbox for repo maintenance***\n\n[![NuGet package](https://img.shields.io/nuget/v/Nerdbank.DotNetRepoTools.svg)](https://www.nuget.org/packages/Nerdbank.DotNetRepoTools)\n\n[![🏭 Build](https://github.com/AArnott/DotNetRepoTools/actions/workflows/build.yml/badge.svg)](https://github.com/AArnott/DotNetRepoTools/actions/workflows/build.yml)\n\n## Documentation\n\nCheck out our [full documentation](https://aarnott.github.io/DotNetRepoTools/docs/getting-started.html).\n\n## Usage\n\n### Acquisition\n\nInstall or upgrade this tool with the following command:\n\n    dotnet tool update -g Nerdbank.DotNetRepoTools\n\nInstall or upgrade to the latest CI build with the following command:\n\n    dotnet tool update -g Nerdbank.DotNetRepoTools --prerelease --add-source https://pkgs.dev.azure.com/andrewarnott/OSS/_packaging/PublicCI/nuget/v3/index.json\n\n## Commands\n\nAfter install, use the tool name `repo` to run commands.\n\nThis CLI tool has (or will have) a variety of commands and sub-commands, discoverable using the `-h` switch to discover commands, sub-commands, and switches.\n\n```\n$ repo -?\n\nDescription:\n  A CLI tool with commands to help maintain .NET codebases.\n\nUsage:\n  repotools [command] [options]\n\nOptions:\n  --version       Show version information\n  -?, -h, --help  Show help and usage information\n\nCommands:\n  nuget  NuGet maintenance commands\n  git    Git repo maintenance workflows\n  azdo   Azure DevOps operations\n```\n\nYou can then drill in to reveal sub-commands:\n\n```\n$ repo nuget -?\n\nDescription:\n  NuGet maintenance commands\n\nUsage:\n  repotools nuget [command] [options]\n\nOptions:\n  -?, -h, --help  Show help and usage information\n\nCommands:\n  reconcile-versions              Resolves all package downgrade warnings.\n  upgrade \u003cid\u003e \u003cversion\u003e          Upgrade a package dependency, and all transitive dependencies such that no package downgrade warnings occur.\n  trim                            Removes PackageReference items that are redundant because they are to packages that already appear as transitive\n                                  dependencies.\n  ManagePackageVersionsCentrally  Migrates a repo to use centralized package versions.\n```\n\nand\n\n```\n$ repo git -?\n\nDescription:\n  Git repo maintenance workflows\n\nUsage:\n  repotools git [command] [options]\n\nOptions:\n  -?, -h, --help  Show help and usage information\n\nCommands:\n  trim \u003cmergeTarget\u003e  Removes local branches that have already been merged into some target ref.\n```\n\n## Example usage\n\nFor example, the following command will upgrade the repo's Directory.Packages.props file to consume a new version of a particular package,\nand update all transitive dependencies that also have versions specified in that file, so that you do not have to manually upgrade those versions\nto resolve package downgrade errors:\n\n    repo nuget upgrade StreamJsonRpc 1.2.3\n\nOr the command I use most frequently, which cleans up all your stale local branches:\n\n    repo git trim origin/main\n\n## Sponsorships\n\n[GitHub Sponsors](https://github.com/sponsors/AArnott)\n[Zcash](zcash:u1vv2ws6xhs72faugmlrasyeq298l05rrj6wfw8hr3r29y3czev5qt4ugp7kylz6suu04363ze92dfg8ftxf3237js0x9p5r82fgy47xkjnw75tqaevhfh0rnua72hurt22v3w3f7h8yt6mxaa0wpeeh9jcm359ww3rl6fj5ylqqv54uuwrs8q4gys9r3cxdm3yslsh3rt6p7wznzhky7)\n","funding_links":["https://github.com/sponsors/aarnott","https://github.com/sponsors/AArnott"],"categories":["C#","C\\#"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAArnott%2FDotNetRepoTools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAArnott%2FDotNetRepoTools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAArnott%2FDotNetRepoTools/lists"}