Docs 菜单

Docs 主页启动和管理 MongoDBAtlas CLI

atlas 配置集

在此页面上

  • 语法
  • 参数
  • 选项
  • 继承选项
  • 举例

配置配置文件的特定属性。

命令语法
atlas config set <propertyName> <value> [options]
名称
类型
必需
说明
属性名称
字符串
true
要在配置文件中设置的属性。 Atlas CLI 和 MongoDB CLI 的有效值为 project_id、org_id、service、public_api_key、private_api_key、output、mongosh_path、skip_update_check、telemetry_enabled、access_token 和 refresh_token。 此外,仅对 MongoDB CLI 有效的值包括 ops_manager_url base_url、ops_manager_ca_certificate 和 ops_manager_skip_verify。
字符串
true
要在配置文件中设置的属性值。
名称
类型
必需
说明
-h,--help
false
设置的帮助
名称
类型
必需
说明
-P,--profile
字符串
false
要从配置文件中使用的配置文件的名称。要了解 Atlas CLI 的配置文件,请参阅 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings。
Set the organization ID in the default profile to 5dd5aaef7a3e5a6c5bd12de4:
atlas config set org_id 5dd5aaef7a3e5a6c5bd12de4
← atlas 配置重命名