Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A typical help doc for an api will list all available acceptable arguments and required arguments.

Emacs style key handling

Ctrl+a (start of the line)
Ctrl+e (end of the line)
Ctlr+w (remove one word from back)
Ctrl+u (remove whole line) etc.

Reverse Searching

Ctrl+R and rest you know (smile)

Comments within shell

Anything after # is treated as comment and is not processed on the shell.

Using as a command line tool

...

Code Block
> !for((i=0;i<100;i++)); do cloudmonkey create user username=user$i account=admin firstname=user$i lastname=user$i password=password$i email=user$i@domain.org; done;

Raw API execution

Use the special command api to send a raw api. It does not do autocompletion and assumes the user knows what he's trying to do.
For example:

Code Block

> api uploadVolume url=xxx format=yyy name=zzz zoneid=aaa

Async Job execution

There are two kinds of apis in CloudStack, one are blocking or synchronous and other one is non-blocking or asynchronous. By default for async apis like deploying a vm ec. are polled by cloudmonkey, one can set cloudmonkey not to poll or wait till the api is finished using:

...

Code Block
> query asyncjobresult jobid=<job-id>

TODOs

1. Reverse search
2. Bash/zsh completion
3 2. Documentation

About

cloudmonkey was named after the beloved mascot of Apache CloudStack and is powered by Marvin.
Author: The Apache CloudStack Team <cloudstack-dev@incubator.apache.org>
Maintainer: Rohit Yadav <bhaisaab@apache.org>