.nh .TH "GT-BROWSE" "1" "Nov 2026" "gitea-cli" "gitea-cli Manual" .SH NAME gt-browse - Open the repository in the browser .SH SYNOPSIS \fBgt browse [ | [:] | ] [flags]\fP .SH DESCRIPTION Open the repository, or one of its issues, pull requests, files, directories or commits, in the browser. .PP A number opens that issue or pull request, and a hexadecimal SHA of at least 7 characters that commit. Anything else is a path, opened on the default branch unless --branch or --commit selects another; write ./NAME for a path that looks like a number or SHA. In a clone, a path is relative to the current directory, otherwise to the repository root. Append :LINE or :START-END to a file path to select lines. A value after --commit and a space is the commit when it is a SHA, or a revision of the clone, such as a branch, tag or HEAD~1, that is not also a local path. .SH OPTIONS \fB-a\fP, \fB--actions\fP[=false] Open the repository's Actions .PP \fB-b\fP, \fB--branch\fP="" Open a path, or the root, of this branch .PP \fB-c\fP, \fB--commit\fP[=""] Open a path, or the root, at this commit; without a value, at HEAD of the clone .PP \fB-h\fP, \fB--help\fP[=false] help for browse .PP \fB-n\fP, \fB--no-browser\fP[=false] Print the URL instead of opening it .PP \fB-p\fP, \fB--projects\fP[=false] Open the repository's projects .PP \fB-r\fP, \fB--releases\fP[=false] Open the repository's releases .PP \fB-s\fP, \fB--settings\fP[=false] Open the repository's settings .PP \fB-w\fP, \fB--wiki\fP[=false] Open the repository's wiki .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB--cwd\fP="" Working \fBdirectory\fR for repository discovery .PP \fB--debug\fP[=false] Log the method, URL, status, and duration of each HTTP request to stderr .PP \fB--host\fP="" Gitea instance \fBURL\fR, including any base path .PP \fB--interactive\fP[=false] Allow prompts with machine output .PP \fB--no-input\fP[=false] Disable prompts and implicit editor/browser interactions .PP \fB--remote\fP="" Git \fBremote\fR used for repository discovery .PP \fB-R\fP, \fB--repo\fP="" Select a repository as \fBOWNER/REPO\fR or URL .PP \fB--sudo\fP="" Perform API requests as this \fBuser\fR (requires an administrator account) .PP \fB--user\fP="" Account \fBname\fR on the selected instance .SH EXAMPLE .EX $ gt browse $ gt browse 217 $ gt browse internal/app/app.go:42 --branch develop $ gt browse 77507cd $ gt browse --commit $ gt browse --commit 77507cd docs $ gt browse --releases -R alice/project $ gt browse --no-browser docs/README.md .EE .SH SEE ALSO \fBgt(1)\fP