We provide two ways to move a package from one repository to another:
- Move via the API using tools/integrations (such as the Cloudsmith CLI)
- Move via the website UI.
To move a package using the Cloudsmith CLI, you first need to identify the package you wish to move. See Package Identification for full instructions on identifying packages.
Once you have identified the package, you use the
cloudsmith move command to move it:
cloudsmith move OWNER/SOURCE_REPO/UNIQUE_ID DESTINATION_REPO
cloudsmith move demo/examples-repo-public/IGgZrwGFAkyU examples-repo
In the above example, we identified that the package we wished to move had the UniqueID "IGgZrwGFAkyU", and we moved it from the source repository "examples-repo-public" to the destination repository "examples-repo":
You can move a package via the Website UI:
- Via the repository packages list
- Via the package detail page
To move a package via the repository packages list, click the orange "Tool" button to the right of the package name, then click "Move":
To move a package via the package detail page, click the orange "Move" button to the right of the package name:
After clicking a move button you will be presented with the Move Package form. Select the destination repository from the drop-down menu and click "Move" to complete the package move:
You will then get an on-screen message confirming that the package move was successful.
To move more than one package to another repository, use the checkboxes beside the package names and then click the orange "move package" button that appears at the top of the package list:
If you have selected a checkbox beside a package name, then package operations under the orange 'tool' button will be disabled as you are now in bulk operation mode.
Updated over 1 year ago