gh-repo(1)

gh-repo1

Manage repositories

Usage

gh repo <command> [flags]

Overview

Work with GitHub repositories.

General commands

gh-repo-create(1)

Create a new repository

gh-repo-list(1)

List repositories owned by user or organization

Targeted commands

gh-repo-archive(1)

Archive a repository

gh-repo-autolink(1)

Manage autolink references

gh-repo-clone(1)

Clone a repository locally

gh-repo-delete(1)

Delete a repository

gh-repo-deploy-key(1)

Manage deploy keys in a repository

gh-repo-edit(1)

Edit repository settings

gh-repo-fork(1)

Create a fork of a repository

gh-repo-gitignore(1)

List and view available repository gitignore templates

gh-repo-license(1)

Explore repository licenses

gh-repo-read-dir(1)

List a directory in a repository (preview)

gh-repo-read-file(1)

Read a file from a repository (preview)

gh-repo-rename(1)

Rename a repository

gh-repo-set-default(1)

Configure default repository for this directory

gh-repo-sync(1)

Sync a repository

gh-repo-unarchive(1)

Unarchive a repository

gh-repo-view(1)

View a repository

Exit status

0: Successful execution

1: Error

2: Command canceled

4: Authentication required

NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.

Examples

$ gh repo create
$ gh repo clone cli/cli
$ gh repo view --web

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

From github-cli 2.102.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.