Use the gcloud CLI

This page describes how to get started with the Google Cloud CLI so you can use it to manage Database Migration Service connection profiles and migration jobs.

The Google Cloud CLI provides the Google Cloud CLI to interact with Database Migration Service and other Google Cloud services. The gcloud CLI uses the API to access Database Migration Service, so you must enable the API before you can use the tool.

Get started with the Google Cloud CLI

To start with the gcloud CLI, review the Google Cloud CLI Documentation. You can get help for the tool, resources, and commands by using the --help flag:

gclouddatabase-migration--help
gclouddatabase-migrationconnection-profilescreate--help
gclouddatabase-migrationmigration-jobspromote--help

Finally, configure a project as your default project with two commands. The first command below lists the configuration for the gcloud CLI, including any default project already set. The second command sets the default project.

gcloudconfiglist
gcloudconfigsetproject[PROJECT_ID]

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月09日 UTC.