The Cloud Code for IntelliJ plugin adds support for Google Cloud development to the JetBrains family of IDEs, including IntelliJ (both Community and Ultimate editions), GoLand, PyCharm, WebStorm (and others).
The following tools are expected to be installed and setup on your system
and available on the
PATH of your machine:
JetBrains IDE version 2020.2+
Your IDE should be a JetBrains IDE such as one of the following:
- IntelliJ Ultimate or Community
- PyCharm Professional or Community
Docker for building and pushing your container images.
Configured Kubernetes cluster which can either be a cluster for local development, such as minikube or Docker Kubernetes cluster, or a remote cluster, such as Google Kubernetes Engine cluster. A minikube cluster is recommended for local development; minikube can be managed automatically by Cloud Code.
Google Cloud project with billing enabled if you're using Google Cloud. Projects allow you to collect all of the related resources for a single application in one place as well as manage APIs, enable Google Cloud services, add and remove collaborators, and manage permissions for Google Cloud resources.
Installing the Cloud Code plugin
If you're running Cloud Code on Apple M-series silicon, install Rosetta 2 by following the steps in Installing Rosetta on an M1 Mac. This allows Cloud Code to install kubectl as a managed dependency. If you prefer not to install Rosetta 2, turn off managed dependencies (IntelliJ IDEA > Preferences > Tools > Cloud Code > Dependencies) and install your own ARM version of kubectl as described in Custom versions of dependencies.
From your IDE's plugins marketplace (File > Settings > Plugins or for Mac OS X, IntelliJ IDEA > Preferences > Plugins), search for the Cloud Code plugin and then install it.
If prompted, restart your IDE to activate the plugin.
By default, Cloud Code installs some required command-line dependencies automatically, such as:
- kubectl for working with Kubernetes clusters and managing Kubernetes deployments.
- skaffold to support continuous development on a Kubernetes cluster, smart image building and tagging, and an array of supported deployment and build types.
- minikube to support local development.
- Cloud SDK to support managing resources on Google Cloud.
Custom versions of dependencies
To use custom versions of dependencies, opt out of dependency management as follows:
Specify the relevant Cloud Code settings in your IDE by opening File > Settings > Tools > Cloud Code > Dependencies or, for Mac OS X, IntelliJ IDEA > Preferences > Tools > Cloud Code > Dependencies, and configuring the Deployment Tools section.
Install the relevant dependencies on your