![Forrest logo](/images/logo.png)
gh-workflow:tldr:24d24
The gh workflow view
command is a command-line interface (CLI) command provided by the GitHub CLI (gh) tool. This command allows you to view the details and status of a workflow in a GitHub repository.
When you run gh workflow view
, it displays the workflow file's name, workflow ID, status, branch it is associated with, and the event that triggered the workflow. It also provides information about the workflow's latest run, showing details such as the run ID, status, conclusion, and duration.
This command is helpful when you want to quickly check the status and details of a workflow in a GitHub repository without navigating to the GitHub web interface.
To use the command, you need to have the GitHub CLI tool (gh
) installed and authenticated with your GitHub account. You can run the command with the following format:
gh workflow view [workflow-name]
Replace [workflow-name]
with the name of the workflow you want to view. If you don't specify a workflow name, it will display details for the default workflow file named main.workflow
.
Note that the gh workflow view
command requires the version 2.0 or higher of the GitHub CLI tool. If you have an older version installed, you may need to update it before using this command.