GitLabTools 1.0.0
dotnet tool install --global GitLabTools --version 1.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 GitLabTools --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=GitLabTools&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package GitLabTools --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GitLabTools
Tool to delete old pipelines from gitlab or read project/group information.
License
The MIT License. See the license file for details.
Install
$ dotnet tool install --global gitlabtools --version 1.0.0
Install from local nuget
$ dotnet tool install --global --add-source "#path_to_folder#" gitlabtools --version 1.0.0
Usage
Prerequisites:
- GitLab personal access token with permission
api
- s. also here - URL to GitLab instance - e.g.
https://mygitlabinstance.com
dotnet gitlabtools readProject --gitLabUrl https://mygitlabinstance.com --projectId 123456 --accessToken <PersonalAccessToken>
dotnet gitlabtools readGroup --gitLabUrl https://mygitlabinstance.com --groupId 654321 --accessToken <PersonalAccessToken>
dotnet gitlabtools deletePipelines --gitLabUrl https://mygitlabinstance.com --pipelinesToKeep 80 --projectId 123456 --accessToken <PersonalAccessToken>
dotnet gitlabtools deletePipelines --gitLabUrl https://mygitlabinstance.com --pipelinesToKeep 80 --projectId 123456 --accessToken <PersonalAccessToken> --dryRun
dotnet gitlabtools deletePipelines --gitLabUrl https://mygitlabinstance.com --pipelinesToKeep 80 --groupId 654321 --accessToken <PersonalAccessToken>
Possible exit codes
Exit code | Description |
---|---|
0 | ok |
1 | Illegal arguments - e.g. url is invalid |
128 | Unexpected error occured |
Proxy
Proxy configuration is read from the environment variables http_proxy
, https_proxy
and no_proxy
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
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 |
---|---|---|
1.0.0 | 246 | 1/23/2024 |
1.0.0-rc.0 | 61 | 1/23/2024 |