gcloud_sql_export_csv (1)
NAME
- gcloud sql export csv - exports data from a Cloud SQL instance to a CSV file
SYNOPSIS
-
gcloud sql export csv INSTANCE URI --query=QUERY [--async] [--database=DATABASE,[DATABASE,...], -d DATABASE,[DATABASE,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
POSITIONAL ARGUMENTS
-
- INSTANCE
-
Cloud SQL instance ID.
- URI
-
The path to the file in Google Cloud Storage where the export will be stored.
The URI is in the form gs://bucketName/fileName. If the file already exists, the
operation fails. If the filename ends with .gz, the contents are compressed.
REQUIRED FLAGS
-
- --query=QUERY
-
A SQL SELECT query (e.g., SELECT * FROM table) that specifies the data to
export.
OPTIONAL FLAGS
-
- --async
-
Display information about the operation in progress, without waiting for the
operation to complete.
- --database=DATABASE,[DATABASE,...], -d DATABASE,[DATABASE,...]
-
Database (for example, guestbook) from which the export is made. If unspecified,
all databases are exported.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
NOTES
These variants are also available:
- $ gcloud alpha sql export csv $ gcloud beta sql export csv