Saltar a contenido

GitHub CLI

INSTALL GitHub

sudo apt install git

INSTALL GITHUB CLI

sudo apt update
sudo apt install gh

Create New Repo

gh repo create REPONAME 

Example:

gh repo create test-repo

Crear Con Parametros

gh repo create my-repo-name --public
# Crea un nuevo repositorio remoto y lo clona localmente
gh repo create my-project --private --clone

Crear En Organization:

gh repo create dpicloud/test-repo --public 

Font: https://cli.github.com/manual/gh_repo_create


Eliminar repositorio

gh repo delete test-repo 

Borrar Sin confirmar

gh repo delete test-repo --confirm

Eliminar En Organization:

gh repo delete dpicloud/test-repo

List Repositorios

gh repo list [<owner>] [flags]

Example:

gh repo list

In Organization:

gh repo list dpicloud