本文档翻译自:https://docs.conan.io/en/latest/reference/commands/misc/copy.html
$ conan copy [-h] [-p PACKAGE] [--all] [--force] reference user_channel
将Conan 配方和软件包复制到另一个user/channel。
有助于推广软件包(例如,从“测试版”到“稳定版”)或将其从一个用户转移到另一个用户。
positional arguments:reference package reference. e.g., MyPackage/1.2@user/channeluser_channel Destination user/channel. e.g., lasote/testingoptional arguments:-h, --help show this help message and exit-p PACKAGE, --package PACKAGEcopy specified package ID [DEPRECATED: use fullreference instead]--all Copy all packages from the specified package recipe--force Override destination packages and the package recipe
Examples
将软件包从beta升级到稳定版:
$ conan copy mypackage/1.0.0@lasote/beta lasote/stable
更改包的用户名:
$ conan copy openssl/1.0.2u@ foo/beta
