gcloud CLI and other Google Cloud SDK tools on your behalf. By configuring service account credentials, your agent can manage cloud resources, deploy applications, and query cloud state.
Features
- Resource Management: Create, list, and manage GCP resources (Compute Engine, Cloud Storage, etc.).
- Cloud Run/Functions: Deploy and monitor serverless applications.
- Identity & Access: Manage IAM roles and service accounts.
- Kubernetes: Interact with GKE clusters.
Prerequisites
To use this integration, you need:- The Google Cloud CLI (
gcloud) installed on your machine. - A Service Account with the necessary IAM permissions for the tasks you want to perform.
- (Optional) A JSON key file for the service account.
Configuration
You can configure the GCP integration in two ways: using a Service Account name (ADC) or a JSON key file.Step 1: Migration
When you run the xCommand CLI, it will automatically update your~/.xcommand/config.json with placeholder fields:
Step 2: Authentication
Option A: Service Account JSON (Recommended for CI/Server)
Uncomment thegcloud_service_account_json_path line and provide the absolute path to your key file:
GOOGLE_APPLICATION_CREDENTIALS environment variable and activate the service account for gcloud.
Option B: Service Account Name (ADC)
If you are running in an environment with Application Default Credentials (like a GCE instance or after runninggcloud auth application-default login), you can specify the account name: