From 96ed1d20b91dfd55193d0d6f22ab3c0c64ddae4d Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Thu, 5 May 2022 22:25:36 +0000 Subject: [PATCH] GCP: Cleanup cli. --- content/GCP/04_intro_to_cli.ipynb | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/content/GCP/04_intro_to_cli.ipynb b/content/GCP/04_intro_to_cli.ipynb index f8b8a16..7ef7348 100644 --- a/content/GCP/04_intro_to_cli.ipynb +++ b/content/GCP/04_intro_to_cli.ipynb @@ -15,15 +15,15 @@ "**Exercises:** 5 min\n", "\n", "**Questions:**\n", - "* How do I use the Cloud CLI?\n", - "* How do I use `gcloud`?\n", + " * How do I use the Cloud CLI?\n", + " * How do I use `gcloud`?\n", "\n", "**Objectives:**\n", - "* Find and use the \"Cloud Shell\" in the web console.\n", - "* Use basic cloud CLI commands (`gcloud` and `gsutil`).\n", - "* Verify basic settings.\n", - "* Use environment variables for configuration.\n", - "* Understand the importance of using variables reproducibility and automation.\n", + " * Find and use the \"Cloud Shell\" in the web console.\n", + " * Use basic cloud CLI commands (`gcloud` and `gsutil`).\n", + " * Verify basic settings.\n", + " * Use environment variables for configuration.\n", + " * Understand the importance of using variables reproducibility and automation.\n", "``` " ] }, @@ -147,6 +147,17 @@ "gcloud config get-value project" ] }, + { + "cell_type": "markdown", + "id": "379aa938-04e0-4663-b402-e79b03b474da", + "metadata": {}, + "source": [ + "We will first use the `gsutil` command, which is similar to `gcloud` but older but more comprehensive. We will first check to see if the command working by showing the help by issuing the following command:\n", + "```\n", + "gcloud help\n", + "```" + ] + }, { "cell_type": "markdown", "id": "1389ca4f-7234-4ea3-9ad8-85914d88ede5", @@ -452,9 +463,10 @@ "metadata": {}, "source": [ "```{admonition} Exercise\n", + ":class: exercise\n", "\n", - " * What command shows the account? (hint: we used it already)\n", - " * Set the `ACCOUNT` environment variable with the correct value. (hint: be careful with punctuation (single and double quotes) and matching brackets and punctuation)\n", + " * What command shows the account? (hint: we used it already)\n", + " * Set the `ACCOUNT` environment variable with the correct value. (hint: be careful with punctuation (single and double quotes) and matching brackets and punctuation)\n", "```" ] },