gh variable list --env production

Category: GitHub CLI

gh variable list --env production

List variables for an environment

Shows plaintext variables, not secrets, configured for the production environment. Variables hold non-sensitive config like URLs or feature flags, while secrets hold values that must stay hidden. Omit --env to list repository variables.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.