连接到部署
语法
命令语法
atlas local connect <deployment_name> [options]
参数
名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
deployment_name | 字符串 | true | 要连接到的部署的名称 |
选项
名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
-h,--help | false | 连接帮助 | |
--connectWith | 字符串 | true | 连接到部署的方法 |
继承选项
名称 | 类型 | 必需 | 说明 |
|---|---|---|---|
-o, --output | 字符串 | false | 输出格式 |
-P, --profile | 字符串 | false | 要从您的配置文件中使用的配置文件的名称。要学习;了解Atlas CLI配置文件,请参阅 https://dochub.mongodb.org/core/atlas-cli-save-connection-settings |