You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/commands.rst
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,36 @@ They follow the same style as the global options and always appear between
61
61
the command and any positional arguments the command requires.
62
62
63
63
64
+
Actions
65
+
-------
66
+
67
+
The actions used by OpenStackClient are defined below to provide a consistent meaning to each action. Many of them have logical opposite actions. Those actions with an opposite action are noted in parens if applicable.
68
+
69
+
* authorize - authorize a token (used in OAuth)
70
+
* add (remove) - add some object to a container object; the command is built in the order of "container add object" (<container> <object>), the positional arguments appear in the same order
71
+
* attach (detach) - deprecated; use add/remove
72
+
* create (delete) - create a new occurrance of the specified object
73
+
* delete (create) - delete a specific occurrance of the specified object
74
+
* detach (attach) - deprecated; use add/remove
75
+
* list - display summary information about multiple objects
76
+
* lock (unlock)
77
+
* migrate - move a server to a different host; --live performs a live migration if possible
78
+
* pause (unpause) - stop a server and leave it in memory
79
+
* reboot - forcibly reboot a server
80
+
* rebuild - rebuild a server using (most of) the same arguments as in the original create
81
+
* remove (add) - remove an object from a group of objects
82
+
* rescue (unrescue) - reboot a server in a special rescue mode allowing access to the original disks
83
+
* resize - change a server's flavor
84
+
* resume (suspend) - return a suspended server to running state
85
+
* save - download an object locally
86
+
* set (unset) - set a property on the object, formerly called metadata
87
+
* show - display detailed information about the specific object
88
+
* suspend (resume) - stop a server and save to disk freeing memory
89
+
* unlock (lock)
90
+
* unpause (pause) - return a paused server to running state
91
+
* unrescue (rescue) - return a server to normal boot mode
Copy file name to clipboardExpand all lines: doc/source/man/openstack.rst
+74-33Lines changed: 74 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ DESCRIPTION
18
18
===========
19
19
20
20
:program:`openstack` provides a common command-line interface to OpenStack APIs. It is generally
21
-
equivalent to the CLIs provided by the OpenStack project client librariess, but with
21
+
equivalent to the CLIs provided by the OpenStack project client libraries, but with
22
22
a distinct and consistent command structure.
23
23
24
24
:program:`openstack` uses a similar authentication scheme as the OpenStack project CLIs, with
@@ -37,57 +37,59 @@ command line. The primary difference is the use of 'project' in the name of the
37
37
OPTIONS
38
38
=======
39
39
40
+
:program:`openstack` takes global options that control overall behaviour and command-specific options that control the command operation. Most global options have a corresponding environment variable that may also be used to set the value. If both are present, the command-line option takes priority. The environment variable names are derived from the option name by dropping the leading dashes ('--'), converting each embedded dash ('-') to an underscore ('_'), and converting to upper case.
41
+
40
42
:program:`openstack` recognizes the following global topions:
41
43
42
-
:option:`--os-auth-url <auth-url>`
44
+
:option:`--os-auth-url` <auth-url>
43
45
Authentication URL
44
46
45
-
:option:`--os-project-name <auth-project-name>`
46
-
Authentication project name (only one of :option:`--os-project-name` or :option:`--os-project-id` need be supplied)
Additional API version options will be available depending on the installed API libraries.
83
85
84
86
85
87
COMMANDS
86
88
========
87
89
88
90
To get a list of the available commands::
89
91
90
-
openstack -h
92
+
openstack --help
91
93
92
94
To get a description of a specific command::
93
95
@@ -101,12 +103,23 @@ To get a description of a specific command::
101
103
Print help for an individual command
102
104
103
105
106
+
NOTES
107
+
=====
108
+
109
+
The command list displayed in help output reflects the API versions selected. For
110
+
example, to see Identity v3 commands ``OS_IDENTITY_API_VERSION`` must be set to ``3``.
111
+
112
+
104
113
EXAMPLES
105
114
========
106
115
107
116
Show the detailed information for server ``appweb01``::
108
117
109
-
openstack --os-tenant-name ExampleCo --os-username demo --os-password secrete --os-auth-url http://localhost:5000:/v2.0 server show appweb01
118
+
openstack \
119
+
--os-project-name ExampleCo \
120
+
--os-username demo --os-password secrete \
121
+
--os-auth-url http://localhost:5000:/v2.0 \
122
+
server show appweb01
110
123
111
124
The same command if the auth environment variables (:envvar:`OS_AUTH_URL`, :envvar:`OS_PROJECT_NAME`,
112
125
:envvar:`OS_USERNAME`, :envvar:`OS_PASSWORD`) are set::
@@ -126,25 +139,53 @@ Create a new image::
126
139
FILES
127
140
=====
128
141
129
-
:file:`~/.openstack`
142
+
:file:`~/.openstack`
143
+
Placeholder for future local state directory. This directory is intended to be shared among multiple OpenStack-related applications; contents are namespaced with an identifier for the app that owns it. Shared contents (such as :file:`~/.openstack/cache`) have no prefix and the contents must be portable.
130
144
131
145
132
146
ENVIRONMENT VARIABLES
133
147
=====================
134
148
135
-
The following environment variables can be set to alter the behaviour of :program:`openstack`
149
+
The following environment variables can be set to alter the behaviour of :program:`openstack`. Most of them have corresponding command-line options that take precedence if set.
150
+
151
+
:envvar:`OS_AUTH_URL`
152
+
Authentication URL
153
+
154
+
:envvar:`OS_DOMAIN_NAME`
155
+
Domain-level authorization scope (name or ID)
156
+
157
+
:envvar:`OS_PROJECT_NAME`
158
+
Project-level authentication scope (name or ID)
159
+
160
+
:envvar:`OS_PROJECT_DOMAIN_NAME`
161
+
Domain name or id containing project
136
162
137
163
:envvar:`OS_USERNAME`
138
-
Set the username
164
+
Authentication username
165
+
166
+
:envvar:`OS_USER_DOMAIN_NAME`
167
+
Domain name or id containing user
139
168
140
169
:envvar:`OS_PASSWORD`
141
-
Set the password
170
+
Authentication password
142
171
143
-
:envvar:`OS_PROJECT_NAME`
144
-
Set the project name
172
+
:envvar:`OS_REGION_NAME`
173
+
Authentication region name
145
174
146
-
:envvar:`OS_AUTH_URL`
147
-
Set the authentication URL
175
+
:envvar:`OS_DEFAULT_DOMAIN`
176
+
Default domain ID (Default: ‘default’)
177
+
178
+
:envvar:`OS_USE_KEYRING`
179
+
Use keyring to store password (default: False)
180
+
181
+
:envvar:`OS_CACERT`
182
+
CA certificate bundle file
183
+
184
+
:envvar:`OS_IDENTITY_API_VERISON`
185
+
Identity API version (Default: 2.0)
186
+
187
+
:envvar:`OS_XXXX_API_VERISON`
188
+
Additional API version options will be available depending on the installed API libraries.
148
189
149
190
150
191
BUGS
@@ -163,7 +204,7 @@ Please refer to the AUTHORS file distributed with OpenStackClient.
163
204
COPYRIGHT
164
205
=========
165
206
166
-
Copyright 2011-2013 OpenStack Foundation and the authors listed in the AUTHORS file.
207
+
Copyright 2011-2014 OpenStack Foundation and the authors listed in the AUTHORS file.
0 commit comments