gcloud alpha spanner samples init

NAME
gcloud alpha spanner samples init - initialize a Cloud Spanner sample app
SYNOPSIS
gcloud alpha spanner samples initAPPNAME--instance-id=INSTANCE_ID[--database-id=DATABASE_ID][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) This command creates a Cloud Spanner database in the giveninstance for the sample app and loads any initial data required by theapplication.
EXAMPLES
To initialize the 'finance' sample app using instance 'my-instance', run:
gcloudalphaspannersamplesinitfinance--instance-id=my-instance

To initialize the 'finance-graph' sample app using instance 'my-instance', run:

gcloudalphaspannersamplesinitfinance-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
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudspannersamplesinit
gcloudbetaspannersamplesinit

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.