Docs Menu
Docs Home
/ /
MongoDB CLI
/ / /

mongocli cloud-manager featurePolicies update

On this page

  • Syntax
  • Options
  • Inherited Options
  • Examples

Update feature control policies for your project.

Feature Control Policies allow you to enable or disable certain MongoDB features based on your site-specific needs.

Command Syntax
mongocli cloud-manager featurePolicies update [options]
Name
Type
Required
Description
-f, --file
string
false
File name that identifies an optional file with a json policy configuration.
-h, --help
false
help for update
--name
string
false
Identifying label for the external system that manages this Ops Manager Project.
-o, --output
string
false
Output format. Valid values are json, json-path, go-template, or go-template-file. To see the full output, use the -o json option.
--policy
strings
false
List of policies that the external system applies to this Ops Manager Project. Passing this flag replaces preexisting data.
--projectId
string
false
Hexadecimal string that identifies the project to use. This option overrides the settings in the configuration file or environment variable.
--systemId
string
false
Unique identifier of the external system that manages this Ops Manager Project.
Name
Type
Required
Description
-P, --profile
string
false
Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.
# Disable user management for a project:
mongocli ops-manager featurePolicies update --projectId <projectId> --name Operator --policy DISABLE_USER_MANAGEMENT
# Update policies from a JSON configuration file:
mongocli atlas featurePolicies update --projectId <projectId> --file <path/to/file.json>

Back

list