gcloud beta spanner samples init - initialize a Cloud Spanner sample app
gcloud beta spanner samples init APPNAME --instance-id=INSTANCE_ID [--database-id=DATABASE_ID] [GCLOUD_WIDE_FLAG ...]
(BETA) This command creates a Cloud Spanner database in the given instance for the sample app and loads any initial data required by the application.
To initialize the 'finance' sample app using instance 'my-instance', run:
$ gcloud beta spanner samples init finance --instance-id=my-instance
- APPNAME
The sample app name, e.g. "finance".
- --instance-id=INSTANCE_ID
The Cloud Spanner instance ID for the sample app.
- --database-id=DATABASE_ID
ID of the new Cloud Spanner database to create for the sample app.
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.
This command is currently in beta and might change without notice. These variants are also available:
$ gcloud spanner samples init
$ gcloud alpha spanner samples init