mirror of
https://gitea.com/gitea/docs.git
synced 2026-11-05 17:45:46 +00:00
Cover what users need to get going and leave the details to gt <command> --help and gt help. Signed-off-by: bircni <[email protected]>
1.0 KiB
1.0 KiB
sidebar_position
| sidebar_position |
|---|
| 2 |
Installation
gt is a single binary for Linux, macOS, Windows and FreeBSD.
Install script
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.
Other ways
- Binaries: download them from dl.gitea.com/gitea-cli.
- Docker: the
gitea/gitea-cliimage runsgtas its entry point. - Go:
go install gitea.dev/cli/cmd/gt@latest
Shell completion and man pages
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.