Use the Cloud SDK


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

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

You can see gcloud examples in the following pages of the Database Migration Service documentation:

  • Manage connection profiles using the API
  • Manage migration jobs using the API

These pages appear in the How-to guides for MySQL, PostgreSQL, and SQL Server.

Get started with the gcloud command-line tool

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

gcloud database-migration --help
gcloud database-migration connection-profiles create --help
gcloud database-migration migration-jobs promote --help

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

gcloud config list
gcloud config set project [PROJECT_ID]