Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Usergrid Command Line
Ruby
tag: v0.0.6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
features
lib
test
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README.md
README.rdoc
Rakefile
examples.jpeg
ugc.gemspec
ugc.rdoc

README.md

Usergrid Command Line (ugc)

ugc enables convenient terminal access to Apigee's App Services (aka Usergrid).

Features

  • Multiple connection/login profiles
  • Simple syntax
  • Use relative (or absolute) URLs
  • Easy-to-read tabular output
  • Optionally also emits raw output (--verbose switch)

Installation

$ gem install ugc

Note: Requires Ruby 1.9.3+. If you have issues, check your version:

$ ruby -v

If necessary, install a new version of Ruby. RVM is recommended:

$ \curl -L https://get.rvm.io | bash -s stable --ruby

Usage

Help

$ ugc help

Setup

Connect to an Apigee administrator account:

$ ugc profile apigee
$ ugc target organization scottganyo
organization = scottganyo
$ ugc target app messagee
application = messagee
$ ugc login --admin scott@ganyo.com
password: **********
logged in user: scott@ganyo.com

Examples

image

Release notes

0.0.6

  • New features
    1. Ruby eval of data in put and post commands
      • eg. may now use "key: 'value'" for json instead of '{"key": "value"}'
    2. Added alias: 'show' for 'get'
    3. Made 'list' an alias of 'get' and updated get to include 'list' functionality
    4. smart column width for entities
    5. Added aliases 'create' and 'update' for 'post' and 'put' (yes, I am aware this isn't technically correct)

0.0.5

  • New features
    1. smart column widths for collections
    2. add "limit" keyword to sql syntax
  • Bug fixes
    1. fixed issue with selecting a single column
    2. fixed formatting of entities with heterogeneous attributes

0.0.4

  • Bug fixes
    1. include Gemfile.lock to ensure correct version of usergrid_iron is used

0.0.3

  • New features
    1. support for query result paging

Copyright

Copyright (c) 2013 Scott Ganyo

Licensed under the Apache License, Version 2.0 (the "License"); you may not use the included files except in compliance with the License.

You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Something went wrong with that request. Please try again.