gh-formatting

display output formatting documentation

TLDR

View formatting help
$ gh formatting

SYNOPSIS

gh formatting

DESCRIPTION

gh formatting displays comprehensive help about GitHub CLI output formatting capabilities. It documents the template syntax for customizing output, JSON output modes for machine-readable data, and field selection options.Many gh commands support the --json flag to output structured data that can be processed by tools like jq. Template formatting uses Go template syntax to create custom output layouts. The --jq flag provides direct integration with jq for JSON filtering.Understanding formatting options is essential for integrating gh into scripts and automated workflows.

INSTALL

sudo apt install gh
sudo dnf install gh
sudo pacman -S github-cli
sudo apk add github-cli
sudo zypper install gh
brew install gh
nix profile install nixpkgs#gh

SEE ALSO

gh(1), gh-help(1)

RESOURCES

Documentation · Source code