Find out where Google Cloud SDK is installed

Answer #1 100 %

The following command will give you the information you're looking for:

$ gcloud info --format="value(installation.sdk_root)"

You need to append /bin.

You also have lots of other paths available: config.paths.global_config_dir, installation.sdk_root, and so on. Look at the output of gcloud info --format=json for all available properties to query.

Answer #2 88.8 %

I used:

dirname $(which gcloud)

And worked like a charm

You’ll also like:

© 2022 CodeForDev.com -