# Gcloud components update version restriction

**URL:** <https://discuss.circleci.com/t/gcloud-components-update-version-restriction/3725>\
**Category:** Deployments\
**Tags:** codedeploy, google-app-engine\
**Created:** [May 1, 2016, 7:46am UTC](https://discuss.circleci.com/t/gcloud-components-update-version-restriction/3725 "2016-05-01T07:46:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![supre](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@supre](https://discuss.circleci.com/u/supre)\
**Post date:** [May 1, 2016, 7:46am UTC](https://discuss.circleci.com/t/gcloud-components-update-version-restriction/3725/1 "2016-05-01T07:46:44Z")

</div>

How can we restrict the `Gcloud` components version to a specific version.  
Currently the latest version of `Gcloud` is 106.0.0 but it has introduced a bunch of changes which breaks our deployment code.  
So we would like to restrict it to version 104.0.0 but a simple `gcloud components update --version 104.0.0` won’t work for us because of permission errors?  
Is there anyway to do this?

---

<div class="post-metadata">

**Author:** ![FelicianoTech](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/felicianotech/32/21348_2.png) [@FelicianoTech](https://discuss.circleci.com/u/FelicianoTech)\
**Post date:** [May 2, 2016, 5:46pm UTC](https://discuss.circleci.com/t/gcloud-components-update-version-restriction/3725/2 "2016-05-02T17:46:14Z")

</div>

Hi,

Currently, the `gcloud` command needs to be run as root with the full path of the binary (we’re working to make that better). From [this guide](https://circleci.com/docs/google-cloud-platform/), try using `sudo /opt/google-cloud-sdk/bin/gcloud` instead of just `gcloud`.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:41am UTC](https://discuss.circleci.com/t/gcloud-components-update-version-restriction/3725/3 "2018-06-18T11:41:01Z")

</div>

Closed on June 18, 2018, 11:41am UTC


