mongocli config set
On this page
Configure specific properties of a profile.
Configure specific properties of the profile. Available properties include: [project_id org_id service public_api_key private_api_key output ops_manager_url base_url ops_manager_ca_certificate ops_manager_skip_verify mongosh_path skip_update_check telemetry_enabled access_token refresh_token].
Syntax
mongocli config set <propertyName> <value> [options]
Arguments
Name | Type | Required | Description |
---|---|---|---|
propertyName | string | true | Property to set in the profile. |
value | string | true | Value for the property to set in the profile. |
Options
Name | Type | Required | Description |
---|---|---|---|
-h, --help | false | help for set |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |
Examples
Set Ops Manager Base URL in the profile myProfile: $ mongocli config set ops_manager_url http://localhost:30700/ -P myProfile Set Organization ID in the default profile: $ mongocli config set org_id 5dd5aaef7a3e5a6c5bd12de4