Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Il plug-in Cloud Code for IntelliJ aggiunge il supporto per lo sviluppo di Google Cloud alla famiglia di IDE JetBrains, tra cui IntelliJ (versioni Community e Ultimate), GoLand, PyCharm, WebStorm (e altri).
Prerequisiti
I seguenti strumenti devono essere installati e configurati sul sistema
e disponibili su PATH del computer:
IDE JetBrains versione 2022.3 o successive
Il tuo IDE deve essere un IDE JetBrains, ad esempio uno dei seguenti:
IntelliJ Ultimate o Community
PyCharm Professional o Community
WebStorm
GoLand
Git in modo che
Cloud Code possa eseguire operazioni Git, come la clonazione di un campione.
Docker per creare ed eseguire il push delle immagini container.
Google Cloud progetto
con
fatturazione abilitata
se utilizzi Google Cloud.
I progetti ti consentono di raccogliere in un'unica posizione tutte le risorse correlate per una singola applicazione, nonché di gestire le API, abilitare i servizi Google Cloud, aggiungere e rimuovere collaboratori e gestire le autorizzazioni per le risorseGoogle Cloud .
In alternativa, puoi installare il plug-in direttamente dal tuo IDE:
Avvia l'IDE.
Apri il marketplace dei plug-in dell'IDE:
Per Windows, vai a File > Impostazioni > Plug-in.
Per macOS, vai a IntelliJ IDEA > Preferenze > Plug-in.
Inserisci Google Cloud Code nel campo di ricerca e poi installa
il plug-in Cloud Code.
Se richiesto, riavvia l'IDE per attivare il plug-in.
Per evitare conflitti se utilizzi Android Studio come IDE, disattiva
il Google Cloud plug-in Tools for Android Studio dopo aver installato
Cloud Code. Il plug-in Google Cloud Tools for Android Studio
verrà deprecato a breve e rimosso completamente in una versione futura di
Android Studio.
Dipendenze gestite
Per impostazione predefinita, Cloud Code installa automaticamente alcune dipendenze della riga di comando richieste, ad esempio:
kubectl per
lavorare con i cluster Kubernetes e gestire i deployment Kubernetes.
skaffold per supportare
lo sviluppo continuo su un cluster Kubernetes, la creazione e il tagging intelligenti delle immagini e
una serie di tipi di build e deployment supportati.
gcloud CLI per supportare la gestione delle risorse su Google Cloud.
Versioni personalizzate delle dipendenze
Per utilizzare versioni personalizzate delle dipendenze, disattiva la gestione delle dipendenze come
segue:
Specifica le impostazioni di Cloud Code pertinenti nell'IDE aprendo
File > Impostazioni > Strumenti > Cloud Code > Dipendenze o,
per Mac OS X, IntelliJ IDEA > Preferenze > Strumenti >
Cloud Code > Dipendenze e configurando la sezione Strumenti di deployment.
(Facoltativo) Scarica e verifica il binario di Cloud Code
La verifica del binario di Cloud Code ti aiuta ad assicurarti che il plug-in Cloud Code non sia stato manomesso nel corso della pipeline di pubblicazione e distribuzione.
Per scaricare il binario Stable o Insiders di Cloud Code sul tuo computer, segui questi passaggi:
Se la verifica non riesce, nell'output della riga di comando viene visualizzato uno dei seguenti messaggi:
Zip archive is not signed by provided certificate authority.
Provided zip archive is not signed.
Signature of zip archive is invalid.
Se non visualizzi un messaggio nell'output della riga di comando, la verifica
è riuscita.
Assistenza
Per inviare un feedback o segnalare un problema nel tuo IDE IntelliJ, vai a
Strumenti > Cloud Code > Guida / Informazioni > Invia
feedback o segnala un problema per segnalare un problema su GitHub.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[],[],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)."]]