gh secret set API_KEY --env production

Category: GitHub CLI

gh secret set API_KEY --env production

Set a secret scoped to a specific deployment environment

Sets a secret with the value provided directly on the command line (useful in scripts).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.