Install every (not already installed) component of the Google Cloud SDK

gcloud components list | grep "^| Not" | sed "s/|\(.*\)|\(.*\)|\(.*\)|/\2/" | xargs echo gcloud components update
Google Cloud SDK comes with a package manager `gcloud components` but it needs a bit of `sed` to work. Modify the "^| Not" bit to change the package selection. (The gcloud --format option is currently broken)
Sample Output
gcloud components update pkg-go pkg-java pkg-python app gae-python-launcher-mac gae-go gae-java gae-python

By: wires
2014-10-13 20:52:25

These Might Interest You

  • The easiest way to sync a local directory to Rackspace cloud files is through the console tools provided by the openstack/swift project. On ubuntu, the tools can be installed with apt-get install python-swiftclient Then, assuming you are in the directory you want to upload, run the following command in the terminal: This will recursively upload the files from your current directory to the container, saving time by uploading only changed files. You need to supply the you use to log in to the Cloud Control Panel and the available under Account / Account Settings in the same control panel. Attention: If you use relative or absolute paths, swift will upload them with the pseudo-path provided on the command line into the container. So if instead of syncing . you sync /var/www/test, then files will end up under /var/www/test pseudo-path of the container - most likely, this is not what you want.

    swift -A -U <username> -K <api-key> upload <containername> . --changed
    nchatu · 2017-03-03 12:02:57 0
  • You need to have Brightbox Cloud CLI tools installed Show Sample Output

    for server in `brightbox-servers list |grep active|awk '{ print $1}'`;do brightbox-servers destroy $server;done
    rubiojr · 2011-08-17 11:47:32 0
  • This command adds a urpmi media source called "google-talkplugin" to the urpmi configuration on Mandriva or Mageia. Needs to be run as root. We specify the option "--update" so that when Google provides a newer version of Google Talk plugin in their download system then running a system update (eg: "urpmi --auto-update") will result in our copy of Google Talk plugin getting updated (along with any other Mandriva/Mageia pending updates). To install Google Talk plugin from this source, use: urpmi google-talkplugin # install plugin used for voice and video Google chat via gmail Show Sample Output

    urpmi.addmedia --update google-talkplugin$(uname -m | sed -e "s/i.86/i386/")
    mpb · 2011-04-30 23:01:36 0
  • (1) required: python-googl ( install by: pip install python-googl ) (2) get from google API console Show Sample Output

    python -c 'import googl; print googl.Googl("<your_google_api_key>").shorten("'$someurl'")[u"id"]'
    shr386 · 2012-05-31 17:14:17 0

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: