File: //snap/google-cloud-cli/394/help/man/man1/gcloud_alpha_datastore_indexes_create.1
.TH "GCLOUD_ALPHA_DATASTORE_INDEXES_CREATE" 1
.SH "NAME"
.HP
gcloud alpha datastore indexes create \- create new datastore indexes based on your local index configuration
.SH "SYNOPSIS"
.HP
\f5gcloud alpha datastore indexes create\fR \fIINDEX_FILE\fR [\fB\-\-database\fR=\fIDATABASE\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR Create new datastore indexes based on your local index
configuration. Any indexes in your index file that do not exist will be created.
.SH "EXAMPLES"
To create new indexes based on your local configuration, run:
.RS 2m
$ gcloud alpha datastore indexes create ~/myapp/index.yaml
.RE
Detailed information about index configuration can be found at the index.yaml
reference (https://cloud.google.com/datastore/docs/tools/indexconfig).
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
\fIINDEX_FILE\fR
The path to your \f5index.yaml\fR file. For a detailed look into defining your
\f5index.yaml\fR file, refer to this configuration guide:
https://cloud.google.com/datastore/docs/tools/indexconfig#Datastore_About_index_yaml
.RE
.sp
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-database\fR=\fIDATABASE\fR
The database to operate on. If not specified, the CLI refers the \f5(default)\fR
database by default.
For example, to operate on database \f5testdb\fR:
.RS 2m
$ gcloud alpha datastore indexes create \-\-database='testdb'
.RE
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "NOTES"
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:
.RS 2m
$ gcloud datastore indexes create
.RE
.RS 2m
$ gcloud beta datastore indexes create
.RE