Complete tasks using the Command Palette in Cloud Code for VS Code

You can carry out many Cloud Code tasks using the Command Palette.

  1. Launch the Command Palette by pressing Cmd/Ctrl+Shift+P or by clicking Manage icon Manage > Command Palette.
  2. Run a task prefixed with Cloud Code:.

The following Cloud Code commands are available:

Command Purpose
Cloud Code: Add a Cluster to the KubeConfig Configure access to a cluster by adding it to your configuration files.
Cloud Code: Add Secret as Environment Variable Add an environment variable to the deployment with the value of a secret (base-64 decoded).
Cloud Code: Apply Current JSON/YAML File to K8s Deployed Resource Apply the current configuration files to a Kubernetes deployed resource.
Cloud Code: Control minikube Start, stop, or pause a minikube cluster.
Cloud Code: Copy resource value Copy the value of the given resource.
Cloud Code: Create GKE Cluster Create a GKE cluster in the Google Cloud console and add the cluster to your KubeConfig, or add an existing cluster to your KubeConfig.
Cloud Code: Create Kubernetes Resource from Current File Create a Kubernetes resource based on the configuration of the currently open file.
Cloud Code: Create Secret Create a secret in Secret Manager.
Cloud Code: Create Secret Version Create a new version of a secret in Secret Manager.
Cloud Code: Debug on Cloud Run Emulator Debug your application using the Cloud Run emulator.
Cloud Code: Debug on Kubernetes Debug your application on Kubernetes.
Cloud Code: Delete Delete a given resource.
Cloud Code: Deploy to Cloud Run Deploy your application to Cloud Run.
Cloud Code: Describe View a detailed description of a resource.
Cloud Code: Diff Current JSON/YAML File with K8s Deployed Resource View the differences between a YAML file in source control and a deployed YAML file.
Cloud Code: Dry-run Current Config for Client-side Validation Perform a dry run of the current configuration for client-side validation.
Cloud Code: Dry-run Current Config for Server-side Validation Perform a dry run of the current configuration for server-side validation.
Cloud Code: Get terminal Open a terminal into the container.
Cloud Code: Manage Custom Sample Repositories Import a custom sample from a source code repository. For more information, see Setting up a sample repository.
Cloud Code: Mount secret as volume Mount the secret as a deployment in a base-64 decoded file.
Cloud Code: New Application Create a new application by copying a sample application.
Cloud Code: Open Cloud Code Status Bar Menu Open the Cloud Code for VS Code status bar menu.
Cloud Code: Open in Cloud Shell Open the current workspace in Cloud Shell.
Cloud Code: Open Kubernetes Dashboard Open the Kubernetes dashboard.
Cloud Code: Open URL Open a URL in a web browser.
Cloud Code: Remove KubeConfig from Kubernetes Explorer Remove a given KubeConfig from the Kubernetes Explorer.
Cloud Code: Report Extension Issue on GitHub Open a pre-populated issue to report an issue with Cloud Code on GitHub.
Cloud Code: Run on Cloud Run Emulator Run the application on the Cloud Run emulator.
Cloud Code: Run on Kubernetes Run the current application on the active cluster.
Cloud Code: Search for API Search for a Google Cloud API and display its details in VS Code.
Cloud Code: Search for GKE Clusters to Set as Current Context Set the context for the active GKE cluster.
Cloud Code: Search for Secret Find a secret in Secret Manager in the current project.
Cloud Code: Set as active namespace Set the given namespace as the current active namespace.
Cloud Code: Grant private GKE nodes outbound internet access Set up a Cloud Router with Cloud NAT on the same nertwork as a private GKE cluster to enable outbound internet connections, such as to pull images from non Google Cloud registries.
Cloud Code: Setup Kubectl Proxying for cluster Set up Kubectl proxying to the control plane API for a private cluster through a given proxy server by configuring the proxy-url setting on the cluster in the KubeConfig.
Cloud Code: Cancel Kubectl Proxying for cluster Cancel Kubectl proxying to the control plane API for a private cluster by removing the proxy-url setting on the cluster in the KubeConfig.
Cloud Code: Show Software Licenses and Privacy Display the Cloud Code for VS Code software license, open OSS notices, and privacy policy.
Cloud Code: Sign Out of All Accounts in Cloud SDK Sign out of all Google Cloud accounts.
Cloud Code: Stream logs Open a terminal and stream logs from the container.
Cloud Code: Switch KubeConfig Upload a new KubeConfig.
Cloud Code: Troubleshoot Problems with Cloud SDK Run a diagnostic of gcloud CLI tools.
Cloud Code: View Logs Open a terminal and write out the current logs from the container
Cloud Code: View Metrics View metrics for a pod or all configured pods.
Cloud Code: Welcome Display the welcome screen.
Cloud Code: Focus on Cloud APIs View Display the Google Cloud API tree view.
Cloud Code: Focus on Cloud Run View Display the Cloud Run explorer.
Cloud Code: Focus on Kubernetes View Display the Kubernetes explorer.
Cloud Code: Focus on Secret Manager View Display the Secret Manager.
View: Show Cloud Code - Cloud APIs Display the Google Cloud API tree view.
View: Show Cloud Code - Cloud Run Display the Cloud Run explorer.
View: Show Cloud Code - Kubernetes Display the Kubernetes explorer.
View: Show Cloud Code - Secret Manager Display the Secret Manager.

Getting Support

To send feedback, report issues on GitHub, or ask a question on Stack Overflow.