Docs Menu

atlas clusters indexes create

On this page

  • Syntax
  • Arguments
  • Options
  • Inherited Options

Create a rolling index for your MongoDB cluster.

atlas clusters indexes create [indexName] [options]
Name
Type
Required
Description
indexName
string
false
Name of the index.
Name
Type
Required
Description
--clusterName
string
true
Name of the cluster.
--collection
string
true
Collection name.
--db
string
true
Database name.
-h, --help
false
help for create
--key
strings
true
Field to be indexed and the type of index in the following format: field:type.
--projectId
string
false
Project ID to use. Overrides the settings in the configuration file or environment variable.
--sparse
false
Flag that indicates whether Atlas should create a sparse index.
Name
Type
Required
Description
-P, --profile
string
false
Profile to use from your configuration file.
Give Feedback
MongoDB logo
© 2021 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2021 MongoDB, Inc.