本文档翻译自:https://docs.conan.io/en/latest/reference/commands/misc/profile.html

    1. $ conan profile [-h] {list,show,new,update,get,remove} ...

    列出“ .conan / profiles”文件夹中的个人资料,或显示个人资料详细信息。
    “ list”子命令将始终使用默认用户“ conan / profiles”文件夹。 但是,“ show”子命令可以解析绝对路径和相对路径,以及将名称映射到“ .conan / profiles”文件夹的方式与“ -profile”安装参数的方式相同。

    1. positional arguments:
    2. {list,show,new,update,get,remove}
    3. list List current profiles
    4. show Show the values defined for a profile
    5. new Creates a new empty profile
    6. update Update a profile with desired value
    7. get Get a profile key
    8. remove Remove a profile key
    9. optional arguments:
    10. -h, --help show this help message and exit

    Examples
    **
    列出配置文件:

    1. $ conan profile list
    2. > myprofile1
    3. > myprofile2

    打印配置文件内容:

    1. $ conan profile show myprofile1
    2. Profile myprofile1
    3. [settings]
    4. ...

    打印配置文件内容(在标准目录.conan/profiles中):

    1. $ conan profile show myprofile1
    2. Profile myprofile1
    3. [settings]
    4. ...

    打印配置文件内容(在自定义目录中):

    1. $ conan profile show /path/to/myprofile1
    2. Profile myprofile1
    3. [settings]
    4. ...

    通过位于自定义目录中的配置文件更新设置:

    1. $ conan profile update settings.build_type=Debug /path/to/my/profile

    向默认配置文件添加新选项:

    1. $ conan profile update options.zlib:shared=True default

    创建一个新的空配置文件:

    1. $ conan profile new /path/to/new/profile

    创建一个新的配置文件来检测设置:

    1. $ conan profile new /path/to/new/profile --detect

    使用检测到的设置创建新的或覆盖现有的配置文件:

    1. $ conan profile new /path/to/new/profile --detect --force