文档菜单
文档首页
/ /
MongoDB CLI
/ / /

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

返回

列表