Frecuentemente publicamos actualizaciones de nuestra documentación. Es posible que la traducción de esta página esté en curso. Para conocer la información más actual, visita la documentación en inglés. Si existe un problema con las traducciones en esta página, por favor infórmanos.

Managing GitHub Actions with GitHub CLI

You can use CLI de GitHub to interact with GitHub Actions.

GitHub Actions se encuentra disponible con GitHub Free, GitHub Pro, GitHub Free para organizaciones, GitHub Team, GitHub Enterprise Cloud, y GitHub One. GitHub Actions no se encuentra disponible para repositorios privados que pertenezcan a cuentas que utilicen planes tradicionales por repositorio.

En este artículo

Note: GitHub-hosted runners are not currently supported on Servidor de GitHub Enterprise. You can see more information about planned future support on the Itinerario público de GitHub.

Setting up CLI de GitHub

To download or upgrade CLI de GitHub, follow the instructions in the CLI de GitHub README. To access all of the GitHub Actions-related commands, you must use version 1.9.0 or greater. For more information about CLI de GitHub, see the CLI de GitHub manual.

CLI de GitHub can authenticate using your GitHub account. Before running CLI de GitHub commands, you will need to authenticate by running gh auth login. For more information on command line authentication, see "gh auth login."

CLI de GitHub commands must be run within the repository that you want to interact with, so you must first navigate to the directory containing the local copy of your repository. Alternatively, you can specify a repository by passing -R HOSTNAME/OWNER/REPOSITORY or --repo HOSTNAME/OWNER/REPOSITORY. Replace HOSTNAME with the name of tu instancia de servidor de GitHub Enterprise. Replace OWNER with owner of the repository. Replace REPOSITORY with the name of the repository.

Managing GitHub Actions with CLI de GitHub

To view all available commands related to GitHub Actions, run gh actions.

For more information on using commands in specific scenarios, see the following procedures:

¿Te ayudó este documento?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

O, learn how to contribute.