name: agentuity-cli-cloud-keyvalue-create-namespace description: 创建一个新的键值命名空间。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” argument-hint: “<名称>” metadata: command: “agentuity cloud keyvalue create-namespace” tags: “mutating creates-resource slow requires-auth”
云键值创建命名空间
创建一个新的键值命名空间
前提条件
- 已通过
agentuity auth login进行身份验证 - 需要项目上下文(从项目目录运行或使用
--project-id)
用法
agentuity cloud keyvalue create-namespace <名称>
参数
| 参数 | 类型 | 是否必需 | 描述 |
|---|---|---|---|
<名称> |
字符串 | 是 | - |
示例
创建生产命名空间:
bunx @agentuity/cli kv create-namespace production
创建测试命名空间(使用别名):
bunx @agentuity/cli kv create staging
创建缓存命名空间:
bunx @agentuity/cli kv create cache
输出
返回JSON对象:
{
"success": "boolean",
"namespace": "string",
"message": "string"
}
| 字段 | 类型 | 描述 |
|---|---|---|
success |
boolean | 操作是否成功 |
namespace |
string | 命名空间名称 |
message |
string | 成功消息 |