name: agentuity-cli-profile-create description: 创建新的配置配置文件 version: “0.0.104” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<名称>” metadata: command: “agentuity profile create” tags: “mutating creates-resource fast”
配置文件创建
创建新的配置配置文件
使用方法
agentuity profile create <名称> [选项]
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<名称> |
字符串 | 是 | - |
选项
| 选项 | 类型 | 是否必需 | 默认值 | 描述 |
|---|---|---|---|---|
--switch |
布尔值 | 是 | - | 切换到该配置文件(如果存在多个) |
示例
创建新项目:
bunx @agentuity/cli profile create production
使用切换选项:
bunx @agentuity/cli profile create staging --switch
创建新项目:
bunx @agentuity/cli profile create development
输出
返回 JSON 对象:
{
"success": "boolean",
"name": "string",
"path": "string"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
布尔值 | 创建是否成功 |
name |
字符串 | 配置文件名称 |
path |
字符串 | 配置文件路径 |