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
|
# File 'lib/cli/usage.rb', line 20
def command_usage
<<-USAGE
#{basic_usage}
Currently available pi commands are:
User
login [url] Login
logout Logs current user out of the system
info List system information
user Display user information
targets List available targets infomation
github [name] Bind to the github account
runtimes Display the supported runtimes of the system
frameworks Display the supported frameworks of the system
version Display version information
help [command] Get general help or help on a specific command
help options Get help on available options
Project
projects List created projects
create-project [projectname] Create a new project
delete-project [projectname] Delete the project
project-events [projectname] List the event info for the project
project-tags [projectname] List the tags for the project
project-commits [projectname] List the commit log for the project
project-apps [projectname] List the applications for the project
upload [projectname] Upload the war package for java project
Application
apps List deployed applications for the project
create-app [appname] Create a new application
delete-app [appid] Delete the application
start-app [appid] Start the application
stop-app [appid] Stop the application
restart-app [appid] Restart the application
scale-app [appid] Scale the application instances up or down
update-app [appid] Update the application
status [appname] Display resource usage for the application
app-env [appid] Display the environments for the application
create-env [appid] Create the environment for the application
delete-env [appid] Delete the environment for the application
app-log [appid] List the logs for the application
Service
app-service [appname] Display the bind services for the application
bind-service [appname] Bind a service to an application
unbind-service [appname] Unbind a service to an application
DNS
app-dns [appname] Display the mapped urls for the application
map-dns [appname] Map the url for the application
unmap-dns [appname] Unmap the url for the application
USAGE
end
|