Skip to content
[ 03 ]Commands

copia-cli label clone

copia-cli label clone <source-repository> [flags]

Clones labels from a source repository to a destination repository on Copia. By default, the destination repository is the current repository.

All labels from the source repository will be copied to the destination repository. Labels in the destination repository that are not in the source repository will not be deleted or modified.

Labels from the source repository that already exist in the destination repository will be skipped. You can overwrite existing labels in the destination repository using the --force flag.

Options

-f, --force
Overwrite labels in the destination repository

Options inherited from parent commands

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

Examples

# Clone and overwrite labels from my-org/plc-template
# into the current repository
$ copia-cli label clone my-org/plc-template --force

# Clone labels from my-org/plc-template into my-org/line-3
$ copia-cli label clone my-org/plc-template --repo my-org/line-3

See also