Cloud Code の Cloud Run サポートを使用して新しいサービスを作成してデプロイし、Cloud Run Explorer とログビューアでアクセスできるサービスログでサービスの進行状況をモニタリングします。ローカル開発ワークフローを希望する場合は、組み込みの Cloud Run エミュレータを使用してローカルでサービスを開発してデバッグすることもできます。
Cloud Run 関数をローカルで開発する
Cloud Code から直接 Cloud Run 関数を表示、ダウンロード、デプロイ、テストします。IDE の機能を活用して Cloud Run 関数に変更を加え、IDE を離れることなく変更をデプロイします。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-02-17 UTC。"],[[["\u003cp\u003eCloud Code brings Google Cloud services directly into your IDE, eliminating the need for context switching during application development for GKE and Cloud Run.\u003c/p\u003e\n"],["\u003cp\u003eIt integrates with Gemini, an AI-powered collaborator, to assist with coding, problem-solving, and generating code, while offering inline suggestions.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code supports the complete development lifecycle, from application creation using templates to deploying, monitoring, debugging, and managing resources.\u003c/p\u003e\n"],["\u003cp\u003eIt provides out-of-the-box support for tools like Skaffold, minikube, kubectl, and Google Cloud SDK, enabling continuous feedback and a unified authentication experience.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code offers features such as managing secrets, browsing Cloud APIs, and handling virtual machine instances without having to leave the IDE.\u003c/p\u003e\n"]]],[],null,["# Cloud Code overview\n\nCloud Code is an extension that brings many Google Cloud\nservices, like Google Kubernetes Engine and Cloud Run, directly into your IDE,\nso you can develop your applications without having to context switch. You can\nalso code with assistance from [Gemini](/gemini/docs/overview), an\nAI-powered collaborator, to help you solve problems with your code, generate\ncode for your project, and receive inline suggestions while you code.\n\nYou have support for the full development cycle of\nGKE\nand Cloud Run applications,\nfrom creating an app using an existing template to monitoring your\ndeployed app's resources. Cloud Code also comes with run-ready\nsamples and out-of-the-box configuration snippets to get you started quickly.\n\nCloud Code works with Google's command-line container tools like\n[Skaffold](/skaffold),\n[minikube](https://minikube.sigs.k8s.io/docs/), and\n[kubectl](https://kubernetes.io/docs/tasks/tools/), providing\nlocal, continuous feedback on your project as you build, edit, run, and deploy\nyour applications locally or in the cloud. Cloud Code also\nintegrates with [Google Cloud SDK](/sdk) to provide a unified authentication\nexperience when you develop with Google Cloud services.\n\nWhile Cloud Code works with any cloud platform, it provides a\nstreamlined Google Cloud experience. For example, you can create\nclusters hosted on Google Cloud, and have better integration with tools like\nCloud Source Repositories, Cloud Build, and Cloud Client Libraries.\n\nIn short, Cloud Code is a powerful tool that can speed up your\nworkflow when developing cloud-native applications. It provides a streamlined\nexperience for the entire development cycle, from creating and deploying\napplications to debugging and monitoring them.\n\nSupported IDEs\n--------------\n\nYou can install the Cloud Code extension in the following IDEs:\n\n- [VS Code](/code/docs/vscode/install).\n- [IntelliJ](/code/docs/intellij/install) and other [supported JetBrains IDEs](/code/docs/intellij/ides). Cloud Code for IntelliJ also provides limited support for [Android Studio](https://developer.android.com/studio).\n\nCloud Code is available by default in the\n[Cloud Shell Editor](/code/docs/shell).\n\nSupported languages\n-------------------\n\nCloud Code supports the following languages:\n\n- Go\n- Java\n- Node.js\n- Python\n- .NET Core\n\nTo view the Cloud Code sample applications that you can use to\ntest Cloud Code's capabilities, see the [`cloud-code-samples`\nGitHub repository](https://github.com/GoogleCloudPlatform/cloud-code-samples).\n\nFeatures\n--------\n\nThis section lists all of the features for\nCloud Code for\nCloud Shell Editor\nthat you can\nexplore.\n\n### Code with assistance from Gemini Code Assist Standard and Enterprise\n\nCloud Code integrates with\n[Gemini Code Assist](/gemini/docs/codeassist/overview) Standard\nand Enterprise, an AI-powered collaborator, to simplify development. Use Gemini Code Assist Standard or Enterprise to accomplish tasks\nmore effectively and efficiently.\n\nGemini Code Assist Standard and Enterprise aren't auto-enabled by\ndefault.\n\n[Code with Gemini Code Assist](/code/docs/shell/write-code-gemini)\nshows you how to connect to Google Cloud, select a\nGoogle Cloud project, and enable the IAM permissions,\nbefore you can begin using Gemini Code Assist.\n\nFor more information on how Cloud Code with\nGemini Code Assist handles your data, see [How Cloud Code with Gemini Code Assist handles your data](/code/docs/cloud-code-gemini-code-assist-data-governance).\n\n### Develop Google Kubernetes Engine applications\n\nCreate and run a new application with Cloud Code's\nGKE support. You can also work on an existing\napplication, customize its YAML with Cloud Code's intelligent\nauthoring support, and run it on any of your GKE\nclusters. Regardless of your workflow, Cloud Code helps you spend\nless time on configuration and context-switching, so you can focus on developing\nyour app.\n\nTo learn more about Cloud Code's support for deploying to Arm and\nmixed-architecture GKE and minikube clusters, see\n\n[Arm support](/code/docs/shell/arm-support).\n\n\n#### Develop parts of a GKE application independently\n\nSkaffold supports using modules to develop and debug parts of your application\nindependently. Dependencies can be defined between `skaffold.yaml` configuration\nfiles and to specific modules.\n\n### Develop Cloud Run services\n\nCreate and deploy a new service with Cloud Code's\nCloud Run support, monitoring your service's progress with the\nCloud Run Explorer and service logs accessible in the Log\nViewer. If you'd prefer a local development workflow, you can also develop and\ndebug a service locally with the built-in Cloud Run emulator.\n\n### Create container images\n\nCreate secure, production-ready container images from source code without having\nto worry about a Dockerfile with Cloud Code's built-in support for\nGoogle Cloud buildpacks. You get to focus on building\nyour application, not containerizing it.\n\n### Manage secrets\n\nProtect sensitive information and keep your app secure with\nCloud Code integrated Secret Manager support. You\ncan create, view, update, and use secrets in the Secret Manager\nview without having them in your codebase.\n\n### Browse Cloud APIs\n\nBrowse available Cloud APIs, enable services, and install and learn how to\nintegrate client libraries in your app without leaving your IDE and breaking\nyour development flow, all with the API library browser.\n\n### Manage virtual machine instances\n\nBrowse Compute Engine virtual machines and their relevant properties\nwithout leaving your IDE. Connect to your VM using the terminal window and\ntransfer files from your local environment to your VM all with\nCloud Code support for Compute Engine.\n\nWhat's next\n-----------\n\n- [Create and deploy a containerized web app](/code/docs/shell/deploy-gke-app).\n- [Deploy a Cloud Run service](/code/docs/shell/deploy-cloud-run-app)."]]