Install the Cloud Code for IntelliJ plugin

Stay organized with collections Save and categorize content based on your preferences.

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).

Prerequisites

The following tools are expected to be installed and setup on your system and available on the PATH of your machine:

  • JetBrains IDE version 2021.3+

    Your IDE should be a JetBrains IDE such as one of the following:

    • IntelliJ Ultimate or Community
    • PyCharm Professional or Community
    • WebStorm
    • GoLand
  • Git so that Cloud Code can perform Git operations, like cloning a sample.

  • 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

  1. Launch your IDE.

  2. Open your IDE's plugins marketplace:

    • For Windows, navigate to File > Settings > Plugins
    • For Mac OS, navigate to IntelliJ IDEA > Preferences > Plugins)
  3. Search for the Cloud Code plugin and then install it.

  4. If prompted, restart your IDE to activate the plugin.

Managed dependencies

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.
  • gcloud CLI to support managing resources on Google Cloud.

Custom versions of dependencies

To use custom versions of dependencies, opt out of dependency management as follows:

  1. 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.

  2. Install the relevant dependencies on your PATH:

Get support

To submit feedback or report an issue in your IntelliJ IDE, go to Tools > Cloud Code > Help / About > Submit feedback or report an issue to report an issue on GitHub, or ask a question on Stack Overflow.

You can also join the #cloud-code channel, which is part of the Google Cloud Slack community.