Here Is Google Command Line Tool: Shell In The Cloud


Googlers are clever geeks, we all know that, and the GoogleCL, i.e. Google Command Line tool, is just another evidence.

googlecl

If you have a little knowledge of the command shell you know that many times typing some commands is better than moving your mouse, especially if the task is a recurring one.

Thus a command line extension to Google services is more than welcome, as it will allow to perform repetitive tasks easier and with less effort. You can find a good example below, as taken form Google Open Source Blog:

Ever wanted to upload a folder full of photos to Picasa from a command prompt? We did, a lot, last summer. It made us want to say:
$ google picasa create --title "My album" ~/Photos/vacation/*.jpg
So we wrote a program to do that, and a whole lot more.
GoogleCL is a command-line utility that provides access to various Google services. It streamlines tasks such as posting to a Blogger blog, adding events to Calendar, or editing documents on Google Docs.
For example:
$ google blogger post --blog "My blog" --tags "python, googlecl, development" my_post.html
$ google calendar add "Lunch with Jason tomorrow at noon"
$ google docs edit --title "Shopping list" --editor vim
GoogleCL is a pure Python application that uses the Python gdata libraries to make Google Data API calls from the command line.
Read more at the GoogleCL project page, or jump right to the examples. Along with a standard tarball, we have a .deb package ready for download, and hope to have it included in Debian and Ubuntu repositories in time for their next releases. We’re adding features all the time, so check in frequently. Or better yet, contribute.
GoogleCL brings cloud computing to your fingertips, literally!

The above is just one of the many services already available, and that can be found at GoogleCL Google Code page:

Blogger

$ google blogger post --title "foo" "command line posting"

Calendar

$ google calendar add "Lunch with Jim at noon tomorrow"

Contacts

$ google contacts list name,email > contacts.csv

Docs

$ google docs edit --title "Shopping list"

Picasa

$ google picasa create --title "Cat Photos" ~/photos/cats/*.jpg

Youtube

$ google youtube post --category Education killer_robots.avi

Now next step: anyone willing to port this on Androids and, maybe, Windows Mobile?

Via: Google Open Source Blog

Reference: GoogleCL Google Code page


Leave a Reply

You must be logged in to post a comment.