---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://sourcecraft.dev/portal/docs/en/cli-ref/src-browse.md
  - https://sourcecraft.dev/portal/docs/ru/cli-ref/src-browse.md
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt

# 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](src-browse-issue.md) | Open issue  in browser |
| [pr](src-browse-pr.md) | 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 |
| `-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.
