gcloud components restore - restore the Google Cloud CLI installation to its previous state
gcloud components restore [GCLOUD_WIDE_FLAG ...]
This is an undo operation, which restores the Google Cloud CLI installation on the local workstation to the state it was in just before the most recent gcloud components update, gcloud components remove, or gcloud components install command. Only the state before the most recent such state is remembered, so it is impossible to restore the state that existed before the two most recent update commands, for example. A restore command does not undo a previous restore command.
To restore Google Cloud CLI installation to its previous state, run:
$ gcloud components restore
These flags are available to all commands: --access-token-file, --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.