gitee-cli
0.2.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global gitee-cli --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local gitee-cli --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=gitee-cli&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package gitee-cli --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GiteeCli
详情参考 Gitee 仓库,https://gitee.com/imyinnan/gitee-cli
打开终端,执行
dotnet tool install --global gitee-cli
查看使用帮助:
gitee-cli -h
gitee-cli clone -h
命令介绍
设置 Token
设置第一步生成的私人令牌,在终端中执行:
gitee-cli set token 0c47b5a462c43765bc33a14ec7169
获取Token:
gitee-cli get token
列出所有仓库
在终端执行:
gitee-cli list
克隆仓库
在终端执行以下命令,其中 <repo_name> 是 gitee-cli list 命令输出的仓库名称
gitee-cli clone --name <repo_name>
执行命令,仓库克隆到当前目录。
克隆所有仓库,执行:
gitee-cli clone
删除仓库
从 gitee.com 删除一个仓库,执行:
gitee-cli delete <repo_name>
列出 Star 仓库
终端执行:
gitee-cli star
列出用户的代码片段
终端执行:
gitee-cli gists list
列出代码片段的ID ,描述,文件名。
创建代码片段
将本地文件作为代码片段上传,只支持文本文件。在文件目录下打开终端执行:
gitee-cli gists create --title 一条笔记 --file note.txt
下载代码片段
终端执行:
gitee-cli gists download --id z6datuobxwj4lm18ncv2e75
会下载 note.txt 到本地。
更新代码片段
修改下载的代码片段文件 note.txt,然后执行更新命令:
gitee-cli gists update --id z6datuobxwj4lm18ncv2e75 --title 一条笔记update --file note.txt
删除代码片段
终端执行:
gitee-cli gists delete --id z6datuobxwj4lm18ncv2e75
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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.