如何从 Azure CLI 使用 Gremlin Graph API 创建 Azure CosmosDB 帐户?

How do I create an Azure CosmosDB account with the Gremlin Graph API from the Azure CLI?

the tutorial on using Azure CosmosDB as a graph database 中,他们使用门户创建数据库帐户。

我正在尝试弄清楚如何使用 Azure CLI 做同样的事情,但是阅读 the docs 我仍然无法弄清楚如何传递 --capabilities 参数来启用Gremlin 图 API.

有什么提示吗?

"EnableGremlin" 是启用 Gremlin Graph API.

的功能名称

az cosmosdb create -g <resource-group-name> -n <database-account-name> --capabilities EnableGremlin