Files
docs/cli-docs/installation.md
T
bircni 31cd47a65c docs: shorten the gt guides
Cover what users need to get going and leave the details to
gt <command> --help and gt help.

Signed-off-by: bircni <[email protected]>
2026-10-22 18:34:04 +02:00

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

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.