Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
En esta página se describe cómo empezar a usar la
CLI de Google Cloud para gestionar los perfiles de conexión y los trabajos de migración de Database Migration Service.
La CLI de Google Cloud proporciona la CLI de Google Cloud para interactuar con Database Migration Service y otros Google Cloud servicios. La CLI de gcloud usa la API para acceder a Database Migration Service, por lo que debes habilitar la API antes de poder usar la herramienta.
Empezar a usar la CLI de Google Cloud
Para empezar a usar gcloud CLI, consulta la
documentación de Google Cloud CLI.
Para obtener ayuda sobre la herramienta, los recursos y los comandos, usa la marca --help:
Por último, configura un proyecto como proyecto predeterminado con dos comandos. El primer comando que se muestra a continuación indica la configuración de la CLI de gcloud, incluido cualquier proyecto predeterminado que ya se haya definido. El segundo comando determina el proyecto predeterminado.
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-21 (UTC)."],[[["\u003cp\u003eThis page provides instructions on using the Google Cloud CLI to manage Database Migration Service connection profiles and migration jobs.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud CLI interacts with Database Migration Service through its API, which must be enabled before use.\u003c/p\u003e\n"],["\u003cp\u003eYou can access help for the Google Cloud CLI, its resources, and commands by using the \u003ccode\u003e--help\u003c/code\u003e flag.\u003c/p\u003e\n"],["\u003cp\u003eSetting a default project for the Google Cloud CLI can be done using the \u003ccode\u003egcloud config set project [PROJECT_ID]\u003c/code\u003e command.\u003c/p\u003e\n"]]],[],null,["# Use the gcloud CLI\n\nThis page describes how to get started with the\n[Google Cloud CLI](/sdk/docs)\nso you can use it to manage Database Migration Service connection profiles and migration jobs.\n\nThe Google Cloud CLI\nprovides the Google Cloud CLI to interact with\nDatabase Migration Service and other Google Cloud services. The gcloud CLI\nuses the API to access Database Migration Service, so you must enable the API before you\ncan use the tool.\n\nGet started with the Google Cloud CLI\n-------------------------------------\n\nTo start with the gcloud CLI, review the\n[Google Cloud CLI Documentation](/sdk/docs).\nYou can get help for the tool, resources, and\ncommands by using the `--help` flag: \n\n```bash\ngcloud database-migration --help\ngcloud database-migration connection-profiles create --help\ngcloud database-migration migration-jobs promote --help\n```\n\n\nFinally, configure a project as your default project with\ntwo commands. The first command below lists the\nconfiguration for the gcloud CLI, including any default project\nalready set. The second command sets the default project. \n\n```bash\ngcloud config list\ngcloud config set project [PROJECT_ID]\n```"]]