1. 本地安装ruby 和 rubygem
2. 安装vmc: gem install vmc
3. 注册cloud foundry帐号
4. 使用vmc登录: vmc target api.cloud foundry; vmc login(输入注册的帐号和密码)
5.上传应用 vmc push
一些常用的vmc命令
1. vmc update <appname>
2. vmc apps
3. gem update vmc -- getting the latest version of vmc
4. vmc target api.cloudfoundry.com -- targeting cloud foundry
5. vmc target -- display current target url
6. vmc logout
7. vmc update <appname>
8. vmc push <appname> --path /xxx/yyy --url xxx.cloudfoundry.com --instance 1/2 --mem 64 --no-start
9. vmc stats <appname>
10. vmc map <appname> <URL>
11. vmc unmap <appname> <URL> -- unregister a url for a deployed app.
12. vmc start <appname>
13. vmc stop <appname>
14. vmc restart <appname>
15. vmc delete <appname>
for more detail to see the url (http://docs.cloudfoundry.com/tools/vmc/vmc-quick-ref.html)