跳转到内容
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!

Installation

gt is a single binary for Linux, macOS, Windows and FreeBSD.

The install script downloads gt from dl.gitea.com, verifies its checksum and installs it.

终端窗口
# Linux, macOS, FreeBSD
curl -fsSL https://gitea.com/gitea/cli/raw/branch/main/scripts/install.sh | sh
终端窗口
# Windows
irm https://gitea.com/gitea/cli/raw/branch/main/scripts/install.ps1 | iex

Set GITEA_CLI_VERSION to install a specific version, or nightly for the latest build of main.

gt completion <shell> prints the completion script for bash, zsh, fish or PowerShell; gt completion <shell> --help shows how to load it. gt man prints the manual.