| GT-BROWSE(1) | gitea-cli Manual | GT-BROWSE(1) |
NAME
gt-browse - Open the repository in the browser
SYNOPSIS
gt browse [<number> | <path>[:<line>] | <commit-sha>] [flags]
DESCRIPTION
Open the repository, or one of its issues, pull requests, files, directories or commits, in the browser.
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.
OPTIONS
-a, --actions[=false] Open the repository's Actions
-b, --branch="" Open a path, or the root, of this branch
-c, --commit[=""] Open a path, or the root, at this commit; without a value, at HEAD of the clone
-h, --help[=false] help for browse
-n, --no-browser[=false] Print the URL instead of opening it
-p, --projects[=false] Open the repository's projects
-r, --releases[=false] Open the repository's releases
-s, --settings[=false] Open the repository's settings
-w, --wiki[=false] Open the repository's wiki
OPTIONS INHERITED FROM PARENT COMMANDS
--cwd="" Working directory for repository discovery
--debug[=false] Log the method, URL, status, and duration of each HTTP request to stderr
--host="" Gitea instance URL, including any base path
--interactive[=false] Allow prompts with machine output
--no-input[=false] Disable prompts and implicit editor/browser interactions
--remote="" Git remote used for repository discovery
-R, --repo="" Select a repository as OWNER/REPO or URL
--sudo="" Perform API requests as this user (requires an administrator account)
--user="" Account name on the selected instance
EXAMPLE
$ 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
SEE ALSO
| Nov 2026 | gitea-cli |