Skip to content

mw gitlab repo update

Releasev0.35.0 · cfeceb67

mw gitlab repo update [path] [flags]

Update an existing GitLab project or repository.

--archive
Whether the project should be archived.
--defaultBranch <string>
New default branch for the project.
-d, --description <string>
New description for the project.
-h, --help
Show help for this command.
--no-interaction
Do not ask any interactive questions
--profile <string>
Saved account profile (login defaults to the verified username)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
# Update the description for my-project.
$ glab repo update my-project --description "This project is cool."
# Update the default branch for my-project.
$ glab repo update my-project --defaultBranch main
# Archive my-project.
$ glab repo update my-project --archive
$ glab repo update my-project --archive=true
# Unarchive my-project.
$ glab repo update my-project --archive=false
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.