Docs 菜单
Docs 主页
/ /
Atlas CLI
/ /

atlas 配置集

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

公共预览版:从MongoDB Atlas Admin API自动生成的 atlas api 子命令提供了对 Admin API的全面覆盖,目前处于公共预览阶段(请通过以下网址提供反馈: https:// 反馈.mongodb.com/ forum/930808 -atlas-cli )。 Admin API功能有自己的发布生命周期,您可以通过提供的API端点文档链接进行检查。

命令语法
atlas config set <propertyName> <value> [options]
名称
类型
必需
说明

属性名称

字符串

true

要在配置文件中设立的属性。 Atlas CLI的有效值为 project_id、org_id、service、public_api_key、private_api_key、output、mongosh_path、skip_update_check、telemetry_enabled、access_token 和 refresh_token。

字符串

true

要在配置文件中设置的属性值。

名称
类型
必需
说明

-h,--help

false

设置的帮助

名称
类型
必需
说明

-P, --profile

字符串

false

Set the organization ID in the default profile to 5dd5aaef7a3e5a6c5bd12de4:
atlas config set org_id 5dd5aaef7a3e5a6c5bd12de4

后退

改名

在此页面上