# gh repo view

Read a repo's README and stats in-terminal.

## Quick answer
```
gh repo view cli/cli
```

## Syntax
```
gh repo view [<repository>] [flags]
```

## Examples

# View the current repository
gh repo view

# View any public repo by name
gh repo view cli/cli

# Open the repo in the browser
gh repo view cli/cli --web

# Show the README of a specific branch
gh repo view cli/cli --branch trunk

# Pull metadata as JSON
gh repo view cli/cli --json stargazerCount,description,licenseInfo

## Key flags

  -w, --web	Open the repository in the browser.
  -b, --branch	View a specific branch of the repository.
  --json	Output specified fields as JSON.
  -q, --jq	Filter JSON output with a jq expression.

Full guide: https://ghcli.com/gh-repo-view.php
