Forrest logo
back to the gh tool

gh-secret:tldr:25bac

gh-secret: List secret keys for a specific organization.
$ gh secret list --org ${organization}
try on your machine

The command "gh secret list --org ${organization}" is used in GitHub CLI (Command Line Interface) to list the secrets stored in an organization's repository.

Here's a breakdown of the command:

  • "gh" refers to the GitHub CLI executable.

  • "secret" is a subcommand used to manage secrets in a repository.

  • "list" is an argument used with the "secret" subcommand to list the secrets.

  • "--org" is an option used to specify the organization in which the repository is located.

  • "${organization}" is a placeholder that should be replaced with the actual name of the organization you want to list secrets for.

By running this command, you can retrieve a list of secrets stored in the specified organization's repositories, allowing you to see the stored secret names and their respective IDs.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool