Docs Menu

Docs HomeMongoDB Command Line Interface

mongocli ops-manager clusters indexes create

On this page

  • Syntax
  • Options
  • Inherited Options

Create a rolling index for your MongoDB cluster.

mongocli ops-manager clusters indexes create [name] [options]
Name
Type
Required
Description
--MaxVariable
string
false
Determines which characters are are considered ignorable. This field applies only if indexConfigs.collation.alternate is set to shifted.
--alternate
string
false
Determines whether collation should consider whitespace and punctuation as base characters during comparisons.
--backwards
false
If true, strings with diacritics sort from the back to the front of the string.
--caseFirst
string
false
Determines the sort order of case differences during tertiary level comparisons.
--caseLevel
false
If set to true, the index uses case comparison. This field applies only if the strength level is set to 1 or 2.
--collectionName
string
true
Collection name.
--db
string
true
Database name.
-h, --help
false
help for create
--key
strings
true
Index keys. Should be formatted as field:type.
--locale
string
false
Locale that the ICU defines.
--normalization
false
If true, collation checks if text requires normalization and performs normalization to compare text.
--numericOrdering
false
If set to true, collation compares numeric strings as numbers. If false, collation compares numeric strings as strings.
--projectId
string
false
Project ID to use. Overrides configuration file or environment variable settings.
--rsName
string
true
The replica set that the index is built on.
--sparse
false
Create a sparse index.
--strength
int
false
Level of comparison to perform.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.

Auto generated by cobra2snooty on 13-Jul-2021

←  mongocli ops-manager clusters indexesmongocli ops-manager clusters list →
Share Feedback