LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gh-formatting

display output formatting documentation

TLDR

View formatting help
$ gh formatting
copy

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
copy
sudo dnf install gh
copy
sudo pacman -S github-cli
copy
sudo apk add github-cli
copy
sudo zypper install gh
copy
brew install gh
copy
nix profile install nixpkgs#gh
copy

SEE ALSO

gh(1), gh-help(1)

RESOURCES

Copied to clipboard
Kai