mongocli om dbuser create

Create a database user for your project

Options

NameDescription
--authDB <authDB>Authentication database name
--mechanisms <mechanisms>Authentication mechanism. Valid values are SCRAM-SHA-1 or SCRAM-SHA-256
--password, -p <password>User's password
--projectId <projectId>Project ID to use. Overrides the settings in the configuration file or environment variable
--role <role>User's roles and the databases or collections on which the roles apply
--username, -u <username>
  • Required ✳