Skip to content

google-cloud

Version 2026.144.1443
Repo superproject

Google Cloud SDK ships the gcloud, gsutil and bq CLIs on PATH The candy downloads the official Google Cloud CLI x86_64 tarball, unpacks it under /var/opt/google-cloud-sdk, runs the bundled install.sh, and symlinks gcloud, gsutil and bq into /usr/bin so every shell finds them. Each CLI answers its own version subcommand, which is what these scenarios assert.

This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.

Intent Step
run command=curl -fsSL “https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-x86_64.tar.gz” \ -o /tmp/google-cloud-sdk.tar.gz mkdir -p /var/opt tar -xzf /tmp/google-cloud-sdk.tar.gz -C /var/opt/ rm -f /tmp/google-cloud-sdk.tar.gz /var/opt/google-cloud-sdk/install.sh –quiet –usage-reporting false –command-completion false –path-update false for cmd in gcloud gsutil bq; do ln -sf /var/opt/google-cloud-sdk/bin/$cmd /usr/bin/$cmd done
check the gcloud CLI is symlinked onto PATH
check gcloud reports its version and exits cleanly
check the gsutil storage CLI is on PATH
check the bq BigQuery CLI is on PATH
check bq reports its version and exits cleanly
check the SDK tree is unpacked at its /var/opt install prefix
check command=/usr/bin/gsutil version