Skip to content

archive command for repositories #1398

@mrtrkmn

Description

@mrtrkmn

Describe the feature or problem you’d like to solve

It would be nice to archive repository through CLI.

Proposed solution

There will be no need to navigate through website which might create distract when web browser is used. Wİthout leaving coding area would be nice to archive repo.

gh repo archive foo/bar

Additional context

Normally, I was thinking to have archive functionality in user base, I mean, instead of archiving current repository, users should be able to list their repos and archive according to user's wish. For instance

gh repo list --user "mrturkmencom"

It will return unique ids per repo or name, then user should be able to archive provided repo, like in given example below.

gh repo archive mrturkmencom/testrepo

Metadata

Metadata

Labels

coreThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions