To view all top-level GitHub CLI commands, enter gh without arguments.

    1. gh

    To list all of the subcommands that you can use with a GitHub CLI command, use the top-level command without arguments.

    1. gh COMMAND

    For example, to view the environment variables that you can set to affect certain aspects of GitHub CLI, use the environment command.

    1. gh environment

    To view the configuration settings that you can set, use the config command.

    1. gh config

    To view help for a particular subcommand, use the --help flag.

    1. gh COMMAND [SUBCOMMAND ...] --help

    All of the information that’s available by running these commands in the terminal is also included in the GitHub CLI online manual.