src browse

Open the repository, file, issue, or pull request in a web browser.

With no argument, opens the repository homepage.

With a path argument (e.g., "script/" or "main.go:312"), opens that path.
A line number can be specified with a colon suffix.

With a number argument (e.g., "123" or "#123"), opens that issue or PR.

With a commit hash argument (e.g., "77507cd94ccaf"), opens that commit.

Use --branch, --tag, or --commit flags to specify a revision for path browsing.

Usage

src browse [<path>|<number>|<commit>] [flags]

Available commands

Command Description
issue Open issue in browser
pr Open pr in browser

Examples

Open repository in browser

src browse

Open specific path

src browse script/

src browse main.go:312

Open issue

src browse issue 123

src browse pr 123

Open commit

src browse 77507cd94ccafcf568f8560cfecde965fcfa63

Open with specific branch

src browse main.go --branch bug-fix

Open with specific tag

src browse client --tag v1.0.0

Open different repository

src browse --repo owner/repo

Print URL instead of opening

src browse --no-browser

Flags

Flag Description
-b, --branch string Browse at specific branch
-c, --commit string Browse at specific commit
-n, --no-browser Print URL instead of opening
-t, --tag string Browse at specific tag

Inherited flags

Flag Description
--env string Override Sourcecraft environment (use 'src envs' to list available)
--json string Output JSON, optionally filtered (--json or --json=field1,field2)
--json-compact string Output compact JSON, optionally filtered
--plain Output without colors/styling (for LLM consumption)
-R, --repo string Select another repository using OWNER/REPO format
-V, --verbose Enable debug logging output

Learn more

Use src browse <subcommand> --help for more information about a command.

Предыдущая
Следующая