You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: Add flag to toggle "Preserve this repository" (GitHub Archive) in gh repo edit #13820
blockedenhancementa request to improve CLIgh-reporelating to the gh repo commandplatformProblems with the GitHub platform rather than the CLI clientstale
GitHub allows public repositories to opt into the GitHub Archive Program (Arctic Code Vault) via the "Preserve this repository" checkbox under Data Services in the repository settings. Currently, there is no way to manage this setting via the gh CLI.
Proposed Solution
Add a flag such as --preserve-repository to gh repo edit to allow users to programmatically opt a repository into the GitHub Archive Program.
Additional Context
For users managing hundreds of repositories, manually opting each repository into the archive program via the UI is incredibly tedious. A CLI flag would enable scriptable inclusion in the archive program.
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the
help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
Thanks — I understand that the CLI cannot expose this setting until GitHub provides an API for it.
Could this remain open as a tracked cross-team dependency, or be transferred/linked to the appropriate GitHub API request, rather than ending at “no API”? The platform-side fix is straightforward in interface terms: expose a writable repository boolean for Preserve this repository / Archive Program participation in REST or GraphQL. gh repo edit could then wire that boolean to the requested flag.
The web UI already writes this setting, so the request is specifically to make the same repository setting available to supported automation across an estate.
blockedenhancementa request to improve CLIgh-reporelating to the gh repo commandplatformProblems with the GitHub platform rather than the CLI clientstale
Activity
github-actions commentedon Jul 15, 2026
Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.
Unless you see the help wantedContributions welcome
label, we are not currently looking for external contributions for this feature.
If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.
BagToad commentedon Jul 15, 2026
Thanks for the issue, this is blocked as there is no API to support the feature.
hyperpolymath commentedon Jul 19, 2026
Thanks — I understand that the CLI cannot expose this setting until GitHub provides an API for it.
Could this remain open as a tracked cross-team dependency, or be transferred/linked to the appropriate GitHub API request, rather than ending at “no API”? The platform-side fix is straightforward in interface terms: expose a writable repository boolean for Preserve this repository / Archive Program participation in REST or GraphQL.
gh repo editcould then wire that boolean to the requested flag.The web UI already writes this setting, so the request is specifically to make the same repository setting available to supported automation across an estate.