---
name: "gh-workflow-view"
section: "1"
platform: "linux"
package: "github-cli"
version: "2.102.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gh-workflow-view"
---

# gh-workflow-view(1)

View the summary of a workflow

## NAME

gh-workflow-view - View the summary of a workflow

## SYNOPSIS

**gh workflow view \[\<workflow-id\> \| \<workflow-name\> \| \<filename\>\] \[flags\]**

## OPTIONS

- **-r**, **--ref** **\<string\>**

  The branch or tag name which contains the version of the workflow file you'd like to view

- **-w**, **--web**

  Open workflow in the browser

- **-y**, **--yaml**

  View the workflow yaml file

## OPTIONS INHERITED FROM PARENT COMMANDS

- **-R**, **--repo** **\<\[HOST/\]OWNER/REPO\>**

  Select another repository using the \[HOST/\]OWNER/REPO format

## EXIT CODES

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

## EXAMPLE

```
# Interactively select a workflow to view
$ gh workflow view
# View a specific workflow
$ gh workflow view 0451
```

## SEE ALSO

**[gh-workflow(1)](/gh-workflow/1.md)**
