Skip to content
[ 03 ]Commands

copia-cli repo rename

copia-cli repo rename <new-name> [flags]

Rename a Copia repository.

<new-name> is the new repository name without the owner. A repository cannot move to another owner this way.

By default, the current repository is renamed. Otherwise, the repository specified with -R/--repo is renamed. There is no prompt, so --yes is required.

Options

-y, --yes
Confirm the rename without prompting

Options inherited from parent commands

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

Examples

# Rename the current repository (my-org/old -> my-org/new)
$ copia-cli repo rename new --yes

# Rename the specified repository (my-org/old -> my-org/new)
$ copia-cli repo rename -R my-org/old new --yes

See also