GitHub.CommandLine 2.0.0

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

GitHub Command

This tool provides several different cli to interact with GitHub server.

1. Pre-requirements

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

2. Release Notes

2.0.0

  • NEW: delete-package command now allow to delete only pre-release versions.
# This command line with only delete pre-release versions (eg: 2.0.0-prerelease, 2.2.0-rc1, 2.2.0-build.22), But not release version (2.0.0)
github delete-package -t {YOUR_GITHUB_PAT} -o wuganhao -r GitHub.CommandLine -p GitHub.CommandLine -k 3 -m current -v 2.0.0 --prerelease-only
  • FIX: Update according to GitHub GraphQL api changes
  • FIX: Use SemVersion 2.0 for version comparing

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 github delete-package to clean packages.

  • Following command removes all package version for GitHub.CommandLine from repository GitHub.CommandLine but keeps the latest 5 versions
dotnet github 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 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
        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
  • 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
  • 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 11,252 8/1/2022
2.2.1-rc.1 137 8/1/2022
2.2.0 4,500 7/8/2021
2.2.0-rc2 294 7/8/2021
2.1.0 1,129 9/15/2020
2.0.0 441 9/11/2020
2.0.0-rc3 382 9/11/2020
1.0.0.27 733 5/30/2020
1.0.0.24 503 4/28/2020
1.0.0.22 503 3/27/2020
1.0.0.19 512 3/27/2020
1.0.0.17 506 3/27/2020
1.0.0.15 539 3/10/2020
1.0.0.14 504 3/10/2020
1.0.0.13 494 3/10/2020