Hướng dẫn active producr license visual composer

a_zz7, I don't know if you are still having a problem, but I have discovered a few things in working with my website that might prove useful. The only way to get VC to recognize a purchase code is to install it first, then install BeTheme. As long as muffingroup keeps VC up to date, that shouldn't really be necessary, but that approach does work. However, on the last VC update (4.4), VC blocked the muffin builder content editing--sort of the opposite of the problem you are having. I deactivated VC, and the problem went away. Then I activated it through the muffin builder activate plugins routine rather than the one on the plugins page, and the problem did not recur. I did get the "Please activate message" after, but if you look at your own screen shot, you will see the license is actually active--that's why you have the deactivate license button in the lower left and the grayed out license key. (By the way, I can access all VC content, which suggests that perhaps the WP Bakery folks were wrong about the cause of your problem. It might indeed be another plugin. I have had any number of bizarre problems caused by plugin incompatibilities, sometimes from plugins that don't seem to have anything to do with the problem.)

The confusion on the settings page stems from the fact that VC expects one kind of activation, and the theme expects another. Perhaps muffingroup should just have left VC out of the theme, but they were getting a lot of pressure to include it. I like VC too and have used it on another site, but I can usually accomplish the same things VC can by using muffin builder.

This quickstart guides you through installing and initializing the Google Cloud CLI and running a few core gcloud CLI commands.


To follow step-by-step guidance for this task directly in the Google Cloud console, click Guide me:

Guide me


Before you begin

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project. Go to project selector
  3. .
  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project. Go to project selector
  5. .

When you finish the tasks that are described in this document, you can avoid continued billing by deleting the resources that you created. For more information, see .

Installing the latest gcloud CLI version (458.0.1)

Linux

  1. Confirm that you have a supported version of Python. The Google Cloud CLI requires Python 3.8 to 3.12. Note that the x86_64 Linux package includes a bundled Python interpreter that will be preferred by default. For information on how to choose and configure your Python interpreter, see ./google-cloud-sdk/bin/gcloud init 8.
  2. Download one of the following: Platform Package name Size SHA256 Checksum Linux 64-bit (x86_64) google-cloud-cli-458.0.1-linux-x86_64.tar.gz 200.0 MB3f7945aa966717f25536a36aff38c30e33de1deb3182c1215ff04c028f795400 Linux 64-bit (Arm) google-cloud-cli-458.0.1-linux-arm.tar.gz 117.9 MB666071dd9257b41b20e918e4c03c6d2f56031a078c057687c1496d11fe56c018 Linux 32-bit (x86) google-cloud-cli-458.0.1-linux-x86.tar.gz 116.0 MBd4b06eb0ea45b2e93ebdd63a7f17472505140976a2e91e20c121d43a5996774f To download the Linux archive file, run the following command: curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-458.0.1-linux-x86_64.tar.gz Refer to the table above and replace google-cloud-cli-458.0.1-linux-x86_64.tar.gz with the ./google-cloud-sdk/bin/gcloud init 9 package name that applies to your configuration.
  3. To extract the contents of the file to your file system (preferably to your home directory), run the following command: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz Optional: To replace an existing installation, remove the existing sudo apt-get update 0 directory and then extract the archive to the same location.
  4. Add the gcloud CLI to your path. Run the installation script from the root of the folder you extracted to using the following command:

    ./google-cloud-sdk/install.sh This can also be done non-interactively (for example, using a script) and by providing preferences as flags. To view the available flags, run: ./google-cloud-sdk/install.sh --help Optional:

    • To send anonymous usage statistics to help improve the gcloud CLI, answer sudo apt-get update 1 when prompted.
    • To add the gcloud CLI to your sudo apt-get update 2 and enable command completion, answer sudo apt-get update 1 when prompted.
  5. Open a new terminal so that the changes take effect.
  6. To initialize the gcloud CLI, run sudo apt-get update 4:

./google-cloud-sdk/bin/gcloud init

  1. Optional: Install additional components using the component manager.

Debian/Ubuntu Package contents

The gcloud CLI is available in package format for installation on Debian and Ubuntu systems. This package contains the

sudo apt-get update

5,

sudo apt-get update

6,

sudo apt-get update

7,

sudo apt-get update

8, and

sudo apt-get update

9 commands only. It doesn't include

sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo

0 or the App Engine extensions required to deploy an application using

sudo apt-get update

5 commands. If you want these components, you must .

Before you begin

Before you install the gcloud CLI, make sure that your operating system meets the following requirements:

  • It is an Ubuntu release that hasn't reached end-of-life or a Debian stable release that hasn't reached end-of-life
  • It has recently updated its packages: sudo apt-get update
  • It has sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 2 and sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 3 installed: sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo Installation
  • Import the Google Cloud public key.
    • For newer distributions (Debian 9+ or Ubuntu 18.04+) run the following command: curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
    • For older distributions, run the following command: curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
    • If your distribution's apt-key command doesn't support the sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 4 argument, run the following command: curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
    • If you can't get latest updates due to an expired key, .
  • Add the gcloud CLI distribution URI as a package source.
    • For newer distributions (Debian 9+ or Ubuntu 18.04+), run the following command: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 0
    • For older distributions that don't support the signed-by option, run the following command: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 1
  • Update and install the gcloud CLI: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 2 For additional sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 5 options, such as disabling prompts or dry runs, refer to the sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 5 man pages. Docker Tip: If installing the gcloud CLI inside a Docker image, use a single RUN step instead: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 3 For older base images that do not support the sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 7 command: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 4
  • (Optional) Install any of the following :
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 8
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 2
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 3
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 4
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 5
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 6
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 7
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 8
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 2
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 3
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 4
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 5
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 6
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 7
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 8
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 2
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 0 For example, the curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 2 component can be installed as follows: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 5
  • Run sudo apt-get update 4 to get started: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 6

Downgrading gcloud CLI versions

To revert to a specific version of the gcloud CLI, where

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

6 is of the form

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

7, run the following command:

tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz

7

The ten most recent releases are always available in the repo.

NOTE: For releases prior to 371.0.0, the package name is

sudo apt-get update

0

Red Hat/Fedora/CentOS Package contents

The gcloud CLI is available in package format for installation on Red Hat Enterprise Linux 7, 8, and 9; Fedora 33 and 34; and CentOS 7 and 8 systems. This package contains the

sudo apt-get update

5,

sudo apt-get update

6,

sudo apt-get update

7,

sudo apt-get update

8, and

sudo apt-get update

9 commands only. It doesn't include

sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo

0 or the App Engine extensions required to deploy an application using

sudo apt-get update

5 commands, which can be installed separately as described later in this section.

Installation

  1. Update DNF with gcloud CLI repo information. Review the list of available packages. The following sample command is for a Red Hat Enterprise Linux 9-compatible installation, but make sure that you update the settings as needed for your configuration: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 8
  2. If you're installing on Fedora 34 or 35, install tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz
  3. tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 9
  4. Install the gcloud CLI: ./google-cloud-sdk/install.sh 0
  5. (Optional) Install any of the following :
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 8
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 2
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 3
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 4
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 5
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 6
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 7
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 8
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 2
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 3
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 4
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 5
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 6
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 7
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 8
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 2
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 0 For example, the curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 2 component can be installed as follows: ./google-cloud-sdk/install.sh 1
  6. Run sudo apt-get update 4 to get started: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 6

Downgrading gcloud CLI versions

If you'd like to revert to a specific version of the gcloud CLI, where

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

6 is of the form

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

7, run:

tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz

37 The ten most recent releases will always be available in the repo. NOTE: For releases prior to 371.0.0, the package name is

sudo apt-get update

0

macOS

  1. Confirm that you have a supported version of Python:
    • To check your current Python version, run tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 39 or tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 40. Supported versions are Python 3.8 to 3.12.
    • The main install script offers to install CPython's Python 3.11.
    • Otherwise, to install a supported Python version, please visit the Python.org Python Releases for macOS.
    • If you have multiple Python interpreters installed on your machine, set the CLOUDSDK_PYTHON environment variable within your shell to point to the path of your preferred interpreter.
    • For more information on how to choose and configure your Python interpreter, see ./google-cloud-sdk/bin/gcloud init 8.
  2. Download one of the following: Platform Package Size SHA256 Checksum macOS 64-bit

(x86_64)

google-cloud-cli-458.0.1-darwin-x86_64.tar.gz 123.7 MB 14e91fa49458632ed4f352c768d0b5aafd1c0487d5e03d73d634a6450fae6842 macOS 64-bit

(ARM64, Apple M1 silicon)

google-cloud-cli-458.0.1-darwin-arm.tar.gz 120.7 MB 46cb8577b440fec5cc0fad28f6308edd18650f736af5b99987b999dfccada9c3 macOS 32-bit

(x86)

google-cloud-cli-458.0.1-darwin-x86.tar.gz 122.4 MB a66c4bda7c3f637aa82795632a0fefbaa054f420470b9cbaed7bc10028a20ac0

  1. Extract the archive to any location on your file system (preferably your Home directory). On macOS, this can be achieved by opening the downloaded tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 42 archive file in the preferred location.
    To replace an existing installation, remove the existing  
    
    sudo apt-get update 0 directory and then extract the archive to the same location.
  2. (Optional) Use the install script to add gcloud CLI tools to your sudo apt-get update 2.You can also opt-in to command-completion for your shell, usage statistics collection, and install Python 3.11.
    Run the script (from the root of the folder you extracted in the last step) using this command:  
    
    ./google-cloud-sdk/install.sh 3 This can also be done non-interactively (for example, using a script) by providing preferences as flags. To describe the available flags, run: ./google-cloud-sdk/install.sh 4 To run the install script with screen reader mode on: ./google-cloud-sdk/install.sh 5 Open a new terminal so that the changes take effect.
  3. To initialize the gcloud CLI, run sudo apt-get update 4:

./google-cloud-sdk/install.sh

6

  1. Optional. Install additional components using the component manager.

Windows The Google Cloud CLI works on Windows 8.1 and later and Windows Server 2012 and later.

  1. Download the Google Cloud CLI installer. Alternatively, open a PowerShell terminal and run the following PowerShell commands: ./google-cloud-sdk/install.sh 7
  2. Launch the installer and follow the prompts. The installer is signed by Google LLC. If you're using a screen reader, check the Turn on screen reader mode checkbox. This option configures sudo apt-get update 5 to use status trackers instead of unicode spinners, display progress as a percentage, and flatten tables. For more information, see the Accessibility features guide.
  3. Google Cloud CLI requires Python; supported versions are Python 3.8 to 3.12. By default, the Windows version of Google Cloud CLI comes bundled with Python 3. To use Google Cloud CLI your operating system must be able to run a supported version of Python. The installer installs all necessary dependencies, including the needed Python version. While Google Cloud CLI installs and manages Python 3 by default, you can use an existing Python installation if necessary by unchecking the option to Install Bundled Python. See ./google-cloud-sdk/bin/gcloud init 8 to learn how to use an existing Python installation.
  4. After installation is complete, the installer gives you the option to create Start Menu and Desktop shortcuts, start the Google Cloud CLI shell, and configure the gcloud CLI. Make sure that you leave the options to start the shell and configure your installation selected. The installer starts a terminal window and runs the sudo apt-get update 4 command.
  5. The default installation doesn't include the App Engine extensions required to deploy an application using sudo apt-get update 5 commands. These components can be installed using the gcloud CLI component manager. Troubleshooting tips:
  6. If your installation is unsuccessful due to the tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 50 command not being recognized, ensure your sudo apt-get update 2 environment variable is set to include the folder containing tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 50. Usually, this is tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 53.
  7. If you uninstalled the gcloud CLI, you must reboot your system before installing the gcloud CLI again.
  8. If unzipping fails, run the installer as an administrator.

Chromebook

  1. Enable the Linux feature on your Chromebook. Installing the Google Cloud CLI on Chromebook requires this feature.
  2. Add the gcloud CLI distribution URI as a package source: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 0
  3. Import the Google Cloud public key: curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
  4. Update and install the gcloud CLI: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 2
  5. (Optional) Install any of the following :
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 8
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 2
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 3
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 4
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 5
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 6
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 7
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 8
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 2
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 3
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 4
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 5
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 6
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 7
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 8
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - 9
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 0
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 1
    • curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - 2
    • sudo apt-get install apt-transport-https ca-certificates gnupg curl sudo 0 For example, the curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg 2 component can be installed as follows: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 5
  6. Run sudo apt-get update 4 to get started: tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 6

Downgrading gcloud CLI versions

To revert to a specific version of the gcloud CLI, where

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

6 is of the form

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

7, run the following command:

tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz

7

The ten most recent releases are always available in the repo.

NOTE: For releases prior to 371.0.0, the package name is

sudo apt-get update

0

Optional: Install the latest Cloud Client Libraries

You can download Cloud Client Libraries for supported languages.

Initializing the gcloud CLI

Use the

sudo apt-get update

4 command to perform several common gcloud CLI setup tasks. These include authorizing the gcloud CLI to access Google Cloud using your user account credentials and setting up the default configuration.

  1. Initialize the gcloud CLI: ./google-cloud-sdk/install.sh --help 4
  2. Accept the option to log in using your Google user account: ./google-cloud-sdk/install.sh --help 5
  3. In your browser, log in to your Google user account when prompted and click Allow to grant permission to access Google Cloud resources.
  4. At the command prompt, select a Google Cloud project from the list of projects where you have Owner, Editor or Viewer permissions: ./google-cloud-sdk/install.sh --help 6 If you only have one project, sudo apt-get update 4 selects it for you. If you have access to more than 200 projects, you will be prompted to enter a project id, create a new project, or list projects. ./google-cloud-sdk/install.sh --help 7
  5. If you have the enabled, sudo apt-get update 4 allows you to choose a default Compute Engine zone: ./google-cloud-sdk/install.sh --help 8 sudo apt-get update 4 confirms that you have complete the setup steps successfully: ./google-cloud-sdk/install.sh --help 9
  6. (Optional) To improve the screen reader experience, enable the tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 89 property: ./google-cloud-sdk/bin/gcloud init 0 For more details about the accessibility features that come with the gcloud CLI, see Enabling accessibility features guide.

Running core commands

Run core commands to view information about your gcloud CLI installation:

  1. List accounts whose credentials are stored on the local system: ./google-cloud-sdk/bin/gcloud init 1 The gcloud CLI displays a list of credentialed accounts: ./google-cloud-sdk/bin/gcloud init 2
  2. List the properties in your active gcloud CLI configuration: ./google-cloud-sdk/bin/gcloud init 3 The gcloud CLI displays the list of properties: ./google-cloud-sdk/bin/gcloud init 4
  3. View information about your gcloud CLI installation and the active configuration: ./google-cloud-sdk/bin/gcloud init 5 The gcloud CLI displays a summary of information about your installation. This includes information about your system, the installed components, the active user account and current project, and the properties in the active configuration.
  4. View information about sudo apt-get update 5 commands and other topics: ./google-cloud-sdk/bin/gcloud init 6 For example, to view the help for tar -xf google-cloud-cli-458.0.1-linux-x86_64.tar.gz 91: ./google-cloud-sdk/bin/gcloud init 7 The gcloud CLI displays a help topic that contains a description of the command, a list of command flags and arguments, and examples of how to use the command.

Clean up

To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.