1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 18:45:13 +00:00
gcloud-help/gcloud/spanner/samples/init
2024-07-31 09:35:16 +00:00

48 lines
1.5 KiB
Text

NAME
gcloud spanner samples init - initialize a Cloud Spanner sample app
SYNOPSIS
gcloud spanner samples init APPNAME --instance-id=INSTANCE_ID
[--database-id=DATABASE_ID] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
This command creates a Cloud Spanner database in the given instance for the
sample app and loads any initial data required by the application.
EXAMPLES
To initialize the 'finance' sample app using instance 'my-instance', run:
$ gcloud spanner samples init finance --instance-id=my-instance
To initialize the 'finance-graph' sample app using instance 'my-instance',
run:
$ gcloud spanner samples init finance-graph --instance-id=my-instance
POSITIONAL ARGUMENTS
APPNAME
The sample app name, e.g. "finance", "finance-graph".
REQUIRED FLAGS
--instance-id=INSTANCE_ID
The Cloud Spanner instance ID for the sample app.
OPTIONAL FLAGS
--database-id=DATABASE_ID
ID of the new Cloud Spanner database to create for the sample app.
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 help for details.
NOTES
These variants are also available:
$ gcloud alpha spanner samples init
$ gcloud beta spanner samples init