Text of cli.github.com › manual › gh_secret as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

GitHub CLI | Take GitHub to the command line

CLI manual gh secret Secrets can be set at the repository, or organization level for use in GitHub Actions, Agents, or Dependabot. User, organization, and repository secrets can be set for use in GitHub Codespaces. Environment secrets can be set for use in GitHub Actions. Run gh help secret set to learn how to get started. Available commands gh secret delete gh secret list gh secret set Options -R , --repo <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format See also gh