mongocli iam organizations create
创建一个操作管理器或云管理器组织。此命令在MongoDB Atlas中不可用。
语法
命令语法
mongocli iam organizations create <name> [options]
参数
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
name | 字符串 | 是 | 标识组织的标签。 |
选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-h, --help | 否 | 创建的帮助信息。 | |
-o, --output | 字符串 | 否 | 输出格式。有效值有 json、json-path、go-template 或 go-template-file。要查看完整的输出,请使用 -o json 选项。 |
继承选项
名称 | 类型 | 必需 | 描述 |
---|---|---|---|
-P, --profile | 字符串 | 否 | 从配置文件中使用的配置文件名。有关 MongoCLI 的配置文件信息,请参阅https://dochub.mongodb.org/core/atlas-cli-configuration-file. |
输出
如果命令执行成功,CLI 返回的输出类似于以下示例。括号内的值代表您的值。
Organization '<ID>' created.
示例
# Create an Ops Manager organization with the name myOrg: mongocli iam organizations create myOrg --output json