如果您使用 Android Studio 作为 IDE,请在安装 Cloud Code 后停用 Google Cloud Tools for Android Studio 插件,以避免任何冲突。 Google Cloud 适用于 Android Studio 的工具插件即将弃用,并将在未来的 Android Studio 版本中完全移除。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Install the Cloud Code for IntelliJ plugin\n\nThe Cloud Code for IntelliJ plugin adds support for Google Cloud development to the\nJetBrains family of IDEs, including IntelliJ (both Community and Ultimate\neditions), GoLand, PyCharm, WebStorm (and others).\n\nPrerequisites\n-------------\n\n| **Note:** You must have a JetBrains IDE version of 2022.3++ to use Cloud Code for IntelliJ.\n\nThe following tools are expected to be installed and set up on your system\nand available on the `PATH` of your machine:\n\n- **JetBrains IDE version 2022.3+**\n\n Your IDE should be a JetBrains IDE such as one of the following:\n - IntelliJ Ultimate or Community\n - PyCharm Professional or Community\n - WebStorm\n - GoLand\n- **[Git](https://git-scm.com/downloads)** so that\n Cloud Code can perform Git operations, like cloning a sample.\n\n- **[Docker](https://docs.docker.com/install/)** for building and pushing your\n container images.\n\n- **Configured Kubernetes cluster** which can either be a cluster for local\n development, such as [minikube](https://kubernetes.io/docs/tasks/tools/#minikube) or\n [Docker Kubernetes](https://docs.docker.com/docker-for-mac/kubernetes/)\n cluster, or a remote cluster, such as\n [Google Kubernetes Engine cluster](/kubernetes-engine).\n A minikube cluster is recommended for local development; minikube can\n be [managed automatically](#managed_dependencies) by Cloud Code.\n\n- **[Google Cloud project](https://console.cloud.google.com/projectselector2)**\n with\n [billing enabled](/billing/docs/how-to/modify-project)\n if you're using Google Cloud.\n Projects allow you to collect all of the related resources for a single\n application in one place as well as manage APIs, enable Google Cloud\n services, add and remove collaborators, and manage permissions for\n Google Cloud resources.\n\nInstall the Cloud Code plugin\n-----------------------------\n\n[Install the Cloud Code plugin](https://plugins.jetbrains.com/plugin/8079-google-cloud-code) from the JetBrains Marketplace.\n| **Note:** When installing Cloud Code, the [Gemini Code Assist](/gemini/docs/codeassist/overview) plugin is also installed by default.\n\nAlternatively, you can install the plugin directly from your IDE:\n\n1. Launch your IDE.\n\n2. Open your IDE's plugins marketplace:\n\n - For Windows, navigate to **File** \\\u003e **Settings** \\\u003e **Plugins**.\n - For macOS, navigate to **IntelliJ IDEA** \\\u003e **Preferences** \\\u003e **Plugins**.\n3. Enter `Google Cloud Code` in the search field and then install\n the Cloud Code plugin.\n\n4. If prompted, restart your IDE to activate the plugin.\n\n5. To avoid any conflicts if you're using Android Studio as your IDE, disable\n the Google Cloud Tools for Android Studio plugin after installing\n Cloud Code. The Google Cloud Tools for Android Studio\n plugin will be deprecated soon and will be fully removed in a future version of\n Android Studio.\n\n### Managed dependencies\n\nBy default, Cloud Code installs some required command-line\ndependencies automatically, such as:\n\n- **[kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)** for working with Kubernetes clusters and managing Kubernetes deployments.\n- **[skaffold](/skaffold)** to support continuous development on a Kubernetes cluster, smart image building and tagging, and an array of supported deployment and build types.\n- **[minikube](https://minikube.sigs.k8s.io/docs/start/)** to support local development.\n- **[gcloud CLI](/sdk/install)** to support managing resources on Google Cloud.\n\n#### Custom versions of dependencies\n\nTo use custom versions of dependencies, opt out of dependency management as\nfollows:\n\n1. Specify the relevant Cloud Code settings in your IDE by opening\n **File** \\\u003e **Settings** \\\u003e **Tools** \\\u003e **Cloud Code** \\\u003e **Dependencies** or,\n for Mac OS X, **IntelliJ IDEA** \\\u003e **Preferences** \\\u003e **Tools** \\\u003e\n **Cloud Code** \\\u003e **Dependencies** , and configuring the **Deployment Tools**\n section.\n\n2. Install the relevant dependencies on your `PATH`:\n\n - [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/)\n - [Skaffold](https://skaffold.dev/docs/install/)\n - [minikube](https://minikube.sigs.k8s.io/docs/start/) for local development\n - [Google Cloud CLI](/sdk/install) if developing with Google Cloud\n\nOptional: Download and verify the Cloud Code binary\n---------------------------------------------------\n\nVerifying the Cloud Code binary helps to ensure you that the\nCloud Code plugin hasn't been tampered with over the course of the\npublishing and delivery pipeline.\n\nTo download the Cloud Code *Stable* or *Insiders* binary to your\nmachine, follow these steps:\n\n1. On Cloud Code's [**Plugin versions**](https://plugins.jetbrains.com/plugin/8079-cloud-code/versions)\n page, select either the [**Stable**](https://plugins.jetbrains.com/plugin/8079-cloud-code/versions/stable) or\n [**Insiders**](https://plugins.jetbrains.com/plugin/8079-cloud-code/versions/insiders) channel.\n\n For more information on the Insiders build, see\n [Use pre-release features](/code/docs/intellij/insiders).\n2. Download the latest version of Cloud Code or a version that you\n want to verify that falls under the current versions that support\n verification:\n\n - Stable: Every release after `23.1.1-221`/`23.1.1-222`\n (`23.1.1-221`/`23.1.1-222` not included)\n\n - Insiders: Every release after `23.1.1-221-IB.1`/`23.1.1-222-IB.1`\n (`23.1.1-221-IB.1`/`23.1.1-222-IB.1` not included)\n\n3. Take note of the path to your Cloud Code binary\n (the `google-cloud-code.zip` file).\n\nTo verify the Cloud Code binary, follow these steps:\n\n1. Download the latest version of the [`marketplace-zip-signer-cli.jar`](https://github.com/JetBrains/marketplace-zip-signer/releases)\n file to your machine. Take note of the path to your `jar` file.\n\n2. Download [DigiCert Trusted Root G4](https://www.digicert.com/kb/digicert-root-certificates.htm).\n Take note of the path to your certificate file.\n\n | **Tip:** Since there are many items on the [DigiCert Trusted Root Authority Certificates page](https://www.digicert.com/kb/digicert-root-certificates.htm), use `Ctrl`/`Cmd`+`F` and search for `DigiCert Trusted Root G4`.\n3. Ensure you have the [JDK](https://www.oracle.com/ca-en/java/technologies/downloads/)\n installed. This is required to run Java commands.\n\n4. To verify the `zip` file (the Cloud Code binary), run the\n following in your command line:\n\n java -jar \u003cvar translate=\"no\"\u003ePATH_TO_ZIP_SIGNER_JAR\u003c/var\u003e verify -in \u003cvar translate=\"no\"\u003ePATH_TO_ZIP_FILE\u003c/var\u003e -cert \u003cvar translate=\"no\"\u003ePATH_TO_CERTIFICATE_FILE\u003c/var\u003e\n\n If the verification fails, one of the following messages appears in your\n command line output:\n - `Zip archive is not signed by provided certificate authority.`\n - `Provided zip archive is not signed.`\n - `Signature of zip archive is invalid.`\n\n If you don't see a message in the command line output, then the verification\n is successful.\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]