Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Nesta página, descrevemos como começar a usar a
Google Cloud CLI.
Dessa maneira, é possível usá-la para gerenciar configurações de conectividade particular, perfis de conexão e streams no Datastream.
A Google Cloud CLI
fornece a Google Cloud CLI para interagir com o
Datastream e outros serviços Google Cloud . A CLI gcloud
usa a API para acessar o Datastream. Portanto, você precisa ativar a API antes de
usar a ferramenta.
Você pode ver exemplos de gcloud nas seguintes páginas da documentação do Datastream:
Para começar a usar a CLI gcloud, consulte a
documentação da CLI do Google Cloud.
É possível receber ajuda com a ferramenta, os recursos e
os comandos usando a flag --help:
Por fim, configure um projeto como o projeto padrão com dois comandos. O primeiro comando abaixo lista a configuração da CLI gcloud, incluindo o projeto padrão já definido. O segundo comando define o projeto padrão.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-12 UTC."],[[["\u003cp\u003eThis page explains how to use the Google Cloud CLI to manage Datastream resources such as private connectivity configurations, connection profiles, and streams.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud CLI interacts with Datastream through its API, which must be enabled before using the tool.\u003c/p\u003e\n"],["\u003cp\u003eYou can refer to the Datastream documentation for specific examples on managing private connectivity, connection profiles, and streams with the gcloud CLI.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--help\u003c/code\u003e flag provides assistance for gcloud CLI tools, resources, and commands related to Datastream.\u003c/p\u003e\n"],["\u003cp\u003eYou can configure a default project for the gcloud CLI using the \u003ccode\u003egcloud config\u003c/code\u003e commands.\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 private connectivity configurations, connection profiles, and streams in Datastream.\n\nThe Google Cloud CLI\nprovides the Google Cloud CLI to interact with\nDatastream and other Google Cloud services. The gcloud CLI\nuses the API to access Datastream, so you must enable the API before you\ncan use the tool.\n\nYou can see `gcloud` examples in the following pages of the Datastream documentation:\n\n- [Manage private connectivity configurations](/datastream/docs/manage-private-connectivity-configurations)\n- [Manage connection profiles](/datastream/docs/manage-connection-profiles)\n- [Manage streams](/datastream/docs/manage-streams)\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 datastream --help\ngcloud datastream private-connections create --help\ngcloud datastream connection-profiles create --help\ngcloud datastream streams create --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```"]]