Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 2.33 KB

File metadata and controls

47 lines (34 loc) · 2.33 KB
title GitHub CLI quickstart
intro Start using {% data variables.product.prodname_cli %} to work with {% data variables.product.company_short %} in the command line.
versions
fpt ghes ghae ghec
*
*
*
*
topics
CLI
type overview
allowTitleToDifferFromFilename true
shortTitle Quickstart

About {% data variables.product.prodname_cli %}

{% data reusables.cli.about-cli %}

Getting started

  1. Install {% data variables.product.prodname_cli %} on macOS, Windows, or Linux.
  2. In the command line, authenticate to {% data variables.product.company_short %}.
gh auth login

{% ifversion not fpt or ghec %} To authenticate to {% data variables.location.product_location %}, use the --hostname flag.

gh auth login --hostname HOSTNAME

{% endif %}

  1. Start working with {% data variables.product.company_short %} in the command line. For example, find an issue to work on with gh issue status or gh issue list --assignee @me. Create a pull request with gh pr create. Review a pull request with gh pr checkout, gh pr diff and gh pr review.

Next steps