forked from ponxu/blog4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudfoundry.txt
116 lines (94 loc) · 5.95 KB
/
cloudfoundry.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
mvn=================================================
mvn cf:push
mvn cf:update
vmc=================================================
部署在cloudfoundry
http://cndocs.cloudfoundry.com/tools/vmc/installing-vmc.html
PostQuery.javaPostQuery.java
安装 Ruby(1.8.7 或 1.9.2) 和 RubyGems (这个ruby应该自带了)
命令说明
gem install vmc
vmc target api.cloudfoundry.com
vmc login
vmc info
vmc apps
vmc passwd
vmc help
vmc push
vmc update appname
========================================================================
Currently available vmc commands are:
Getting Started
target [url] Reports current target or setsa new target
login [email] [--email, --passwd] Login
info System and account information
Applications
apps List deployed applications
Application Creation
push [appname] Create, push, map, and start a new application
push [appname] --path Push application from specified path
push [appname] --url Set the url for the application
push [appname] --instances <N> Set the expected number <N> of instances
push [appname] --mem M Set the memory reservation for the application
push [appname] --runtime RUNTIME Set the runtime to use for the application
push [appname] --debug [MODE] Push application and start in a debug mode
push [appname] --no-start Do not auto-start the application
Application Operations
start <appname> [--debug [MODE]] Start the application
stop <appname> Stop the application
restart <appname> [--debug [MODE]] Restart the application
delete <appname> Delete the application
Application Updates
update <appname> [--path,--debug [MODE]] Update the application bits
mem <appname> [memsize] Update the memory reservation for an application
map <appname> <url> Register the application to the url
unmap <appname> <url> Unregister the application from the url
instances <appname> <num|delta> Scale the application instances up or down
Application Information
crashes <appname> List recent application crashes
crashlogs <appname> Display log information for crashed applications
logs <appname> [--all] Display log information for the application
files <appname> [path] [--all] Display directory listing or file download for [path]
stats <appname> Display resource usage for the application
instances <appname> List application instances
Application Environment
env <appname> List application environment variables
env-add <appname> <variable[=]value> Add an environment variable to an application
env-del <appname> <variable> Delete an environment variableto an application
Services
services Lists of services available and provisioned
create-service <service> [--name,--bind] Create a provisioned service
create-service <service> <name> Create a provisioned service and assign it <name>
create-service <service> <name> <app> Create a provisioned service and assign it <name>, and bind to <app>
delete-service [servicename] Delete a provisioned service
bind-service <servicename> <appname> Bind a service to an application
unbind-service <servicename> <appname> Unbind service from the application
clone-services <src-app> <dest-app> Clone service bindings from <src-app> application to <dest-app>
tunnel <servicename> [--port] Create a local tunnel to a service
tunnel <servicename> <clientcmd> Create a local tunnel to a service and start a local client
Administration
user Display user account information
passwd Change the password for the current user
logout Logs current user out of the target system
add-user [--email, --passwd] Register a new user (requires admin privileges)
delete-user <user> Delete a user and all apps andservices (requires admin privileges)
System
runtimes Display the supported runtimes of the target system
frameworks Display the recognized frameworks of the target system
Micro Cloud Foundry
micro status Display Micro Cloud Foundry VM status
micro offline Configure Micro Cloud Foundry VM for offline mode
micro online Configure Micro Cloud Foundry VM for online mode
[--vmx file] Path to micro.vmx
[--vmrun executable] Path to vmrun executable
[--password cleartext] Cleartext password for guest VM
vcap user
[--save] Save cleartext password in ~/.vmc_micro
Misc
aliases List aliases
alias <alias[=]command> Create an alias for a command
unalias <alias> Remove an alias
targets List known targets and associated authorization tokens
Help
help [command] Get general help or help on a specific command
help options Get help on available options