gcloud beta datastore indexes create Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta datastore indexes create - create new datastore indexes based on your local index configuration
- SYNOPSIS
gcloud beta datastore indexes createINDEX_FILE[--database=DATABASE][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)Create new datastore indexes based on your local indexconfiguration. Any indexes in your index file that do not exist will be created.- EXAMPLES
- To create new indexes based on your local configuration, run:
gcloudbetadatastoreindexescreate~/myapp/index.yamlDetailed information about index configuration can be found at theindex.yamlreference.
- POSITIONAL ARGUMENTS
INDEX_FILE- The path to your
index.yamlfile. For a detailed look into definingyourindex.yamlfile, refer to this configuration guide:https://cloud.google.com/datastore/docs/tools/indexconfig#Datastore_About_index_yaml
- FLAGS
--database=DATABASE- The database to operate on. If not specified, the CLI refers the
(default)database by default.For example, to operate on database
testdb:gcloudbetadatastoreindexescreate--database='testdb'
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gclouddatastoreindexescreategcloudalphadatastoreindexescreate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.