GitHub.CommandLine 1.0.0.17

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global GitHub.CommandLine --version 1.0.0.17                
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 GitHub.CommandLine --version 1.0.0.17                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=GitHub.CommandLine&version=1.0.0.17                
nuke :add-package GitHub.CommandLine --version 1.0.0.17                

GitHub Command

This tool is can be use to clean up unwanted packages from GitHub Package Registry.

1. Pre-requirements

  • .NET Core 3.0+ is required to run this package.
  • This tool provides as an .NetCore 3.0 tool package.

2. Install GitHub-Tools

To install this tool. please run following command:

dotnet tool install --global GitHub.CommandLine

3. Available sub commands

3.1. [delete-package] Clean up older packages

After installing the tool you can run dotnet github-tool to clean packages.

  • Following command removes all package version for GitHub.CommandLine from repository GitHub.CommandLine but keeps the latest 5 versions
dotnet github-tool delete-package -t ${{secrets.github_token}} -o wuganhao -r GitHub.CommandLine -p GitHub.CommandLine -k 5 -m all
  • Following command removes all package version for GitHub.CommandLine with version number 4.0.0.* and keeps only the latest 5 versions.
dotnet github-tool delete-package -t ${{secrets.github_token}} -o wuganhao -r GitHub.CommandLine -p GitHub.CommandLine -k 5 -m current -v 4.0.0
  • For using this tool in GitHub Actions, You can take the example in this repository. This repository use the same tool to cleanup itself. (When using this inside GitHub Actions, owner and repository name can be emitted)
    - name: Setup .NET Core CLI
      uses: actions/setup-dotnet@v1.1.0

    - name: Remove older packages and keep only latest 5 versions
      run: |
        dotnet tool install --global GitHub.CommandLine
        dotnet github delete-package -t ${{secrets.github_token}} -k 5 -m all
  • To get details about how to use this commands, Try github delete-package --help.

3.2. [auto-merge] Automatically merge from all previous branches

  • Run following command line for automatically merging all branch from pre-4.0.0 to 4.0.0. Break on any conflict, allow user to resolve conflicts and re-run this command line again.
github auto-merge -t 4.0.0 -c break
# or
dotnet github aut-merge -t 4.0.0 -c break
  • Run following command line for automatically merging all branch from pre-4.0.0 to 4.0.0. Skip on any conflict, and continue merging the all other version that has no conflicts. (This might cause more conflicts, as normally we have to merge from lower version then higher)
github auto-merge -t 4.0.0 -c skip
# or
dotnet github auto-merge -t 4.0.0 -c skip
  • To get details about how to use this commands, Try github delete-package --help.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 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
2.2.1 15,301 8/1/2022
2.2.1-rc.1 157 8/1/2022
2.2.0 4,533 7/8/2021
2.2.0-rc2 322 7/8/2021
2.1.0 1,168 9/15/2020
2.0.0 482 9/11/2020
2.0.0-rc3 420 9/11/2020
1.0.0.27 796 5/30/2020
1.0.0.24 539 4/28/2020
1.0.0.22 548 3/27/2020
1.0.0.19 559 3/27/2020
1.0.0.17 549 3/27/2020
1.0.0.15 572 3/10/2020
1.0.0.14 536 3/10/2020
1.0.0.13 529 3/10/2020