Skip to content
[ 03 ]Commands

copia-cli repo edit

copia-cli repo edit [<owner/repo>] [flags]

Edit repository settings. With no argument, the repository for the current directory is edited.

Only the given flags change. To toggle a setting off, use the --<flag>=false syntax.

Changing repository visibility can have unexpected consequences, such as detaching forks or exposing the repository's history. When the --visibility flag is used, the --accept-visibility-change-consequences flag is required.

Options

--accept-visibility-change-consequences
Accept the consequences of changing the repository visibility
--add-topic <strings>
Add repository topic
--default-branch <name>
Set the default branch name for the repository
--delete-branch-on-merge
Delete head branch when pull requests are merged
-d, --description <string>
Description of the repository
--enable-issues
Enable issues in the repository
--enable-merge-commit
Enable merging pull requests via merge commit
--enable-projects
Enable projects in the repository
--enable-rebase-merge
Enable merging pull requests via rebase
--enable-squash-merge
Enable merging pull requests via squashed commit
--enable-wiki
Enable wiki in the repository
--homepage <URL>
Repository home page URL
--remove-topic <strings>
Remove repository topic
--template
Make the repository available as a template repository
--visibility <string>
Change the visibility of the repository to {public,private}

Options inherited from parent commands

--host <string>
Target Copia host
-R, --repo <string>
Select repository (owner/repo)
--token <string>
Authentication token

Examples

# Enable issues and wiki
$ copia-cli repo edit --enable-issues --enable-wiki

# Disable projects
$ copia-cli repo edit --enable-projects=false

# Add and remove topics
$ copia-cli repo edit my-org/my-repo --add-topic plc,scada \
    --remove-topic old

See also