Skip to content

[data-agents-in-agy-and-bq] Multi-line API enablement command fails in Cloud Shell due to trailing spaces / formatting #2002

@Yash55-max

Description

@Yash55-max

Description

When copying and pasting the multi-line gcloud services enable command from step 2 ("Before you begin") into the Cloud Shell terminal, the command execution breaks. The terminal interprets the last service (aiplatform.googleapis.com) as a standalone bash command rather than arguments for gcloud, resulting in a partial execution and a bash: aiplatform.googleapis.com: command not found error.

Steps to Reproduce

  1. Navigate to the Chat With Your Data using BigQuery Agents & Antigravity IDE codelab, Step 2.
  2. Scroll down to instruction number 8 ("Enable the required APIs").
  3. Click the copy icon or manually highlight the block containing the multi-line gcloud services enable command with backslashes (\).
  4. Paste the block into the Google Cloud Shell terminal and press Enter.

Expected Behavior

The terminal should recognize the backslashes as line continuations and successfully enable all 10 listed Google Cloud APIs under the active project.

Actual Behavior

The command breaks at the final line continuation, resulting in the following output:

violations:
 - subject: ?error_code=220002&services=+
   type: googleapis.com
...
reason: SERVICE_CONFIG_NOT_FOUND_OR_PERMISSION_DENIED

(.venv) yashwanthponnam55@cloudshell:~ (yash-genai-final)$ gcloud services enable alloydb.googleapis.com bigquery.googleapis.com run.googleapis.com cloudbuild.googleapis.com artifactregistry.googleapis.com iam.googleapis.com secretmanager.googleapis.com compute.googleapis.com servicenetworking.googleapis.com aiplatform.googleapis.com
bash: aiplatform.googleapis.com: command not found
Suggested FixUpdate the codelab markdown documentation to provide the command as a single line, or ensure there are absolutely no trailing spaces/hidden characters after the backslashes (\) inside the code block wrapper

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions