1
0
mirror of synced 2025-12-30 21:02:34 -05:00
Files
docs/content/github-cli/github-cli/quickstart.md
Laura Coursen 8f964ea2cb GHEC version (#20947)
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Steve Guntrip <12534592+stevecat@users.noreply.github.com>
Co-authored-by: Robert Sese <sese@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-10-15 15:41:33 -05:00

2.3 KiB

title, intro, versions, topics, type, allowTitleToDifferFromFilename, shortTitle
title intro versions topics type allowTitleToDifferFromFilename shortTitle
GitHub CLI quickstart Start using {% data variables.product.prodname_cli %} to work with {% data variables.product.company_short %} in the command line.
fpt ghes ghae ghec
* * * *
CLI
overview true 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.product.product_location %}, use the --hostname flag.

gh auth login --hostname <em>hostname</em>

{% 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