2013-12-05 13:23:44 -06:00
====================
2013-07-29 17:05:02 -05:00
:program: `openstack`
2013-12-05 13:23:44 -06:00
====================
2013-07-29 17:05:02 -05:00
2013-12-05 13:23:44 -06:00
OpenStack Command Line
2013-07-29 17:05:02 -05:00
SYNOPSIS
========
:program: `openstack` [<global-options> ] <command> [<command-arguments> ]
:program: `openstack help` <command>
2013-12-05 13:23:44 -06:00
:program: `openstack` --help
2013-07-29 17:05:02 -05:00
DESCRIPTION
===========
:program: `openstack` provides a common command-line interface to OpenStack APIs. It is generally
2014-02-21 12:46:07 -06:00
equivalent to the CLIs provided by the OpenStack project client libraries, but with
2013-07-29 17:05:02 -05:00
a distinct and consistent command structure.
:program: `openstack` uses a similar authentication scheme as the OpenStack project CLIs, with
the credential information supplied either as environment variables or as options on the
2013-12-05 13:23:44 -06:00
command line. The primary difference is the use of 'project' in the name of the options
`` OS_PROJECT_NAME `` /`` OS_PROJECT_ID `` over the old tenant-based names.
2013-07-29 17:05:02 -05:00
::
export OS_AUTH_URL=<url-to-openstack-identity>
export OS_PROJECT_NAME=<project-name>
export OS_USERNAME=<user-name>
export OS_PASSWORD=<password> # (optional)
OPTIONS
=======
2014-02-21 12:46:07 -06:00
: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.
2013-07-29 17:05:02 -05:00
:program: `openstack` recognizes the following global topions:
2014-02-21 12:46:07 -06:00
:option: `--os-auth-url` <auth-url>
2013-07-29 17:05:02 -05:00
Authentication URL
2014-02-21 12:46:07 -06:00
:option: `--os-domain-name` <auth-domain-name> | :option: `--os-domain-id` <auth-domain-id>
Domain-level authorization scope (name or ID)
:option: `--os-project-name` <auth-project-name> | :option: `--os-project-id` <auth-project-id>
Project-level authentication scope (name or ID)
2013-07-29 17:05:02 -05:00
2014-02-21 12:46:07 -06:00
:option: `--os-project-domain-name` <auth-project-domain-name> | :option: `--os-project-domain-id` <auth-project-domain-id>
Domain name or id containing project
2013-07-29 17:05:02 -05:00
2014-02-21 12:46:07 -06:00
:option: `--os-username` <auth-username>
2013-07-29 17:05:02 -05:00
Authentication username
2014-02-21 12:46:07 -06:00
:option: `--os-user-domain-name` <auth-user-domain-name> | :option: `--os-user-domain-id` <auth-user-domain-id>
Domain name or id containing user
:option: `--os-password` <auth-password>
2013-07-29 17:05:02 -05:00
Authentication password
2014-02-21 12:46:07 -06:00
:option: `--os-region-name` <auth-region-name>
2013-07-29 17:05:02 -05:00
Authentication region name
2014-02-21 12:46:07 -06:00
:option: `--os-default-domain` <auth-domain>
2013-12-05 13:23:44 -06:00
Default domain ID (Default: 'default')
2014-02-21 12:46:07 -06:00
:option: `--os-cacert` <ca-bundle-file>
2013-12-05 13:23:44 -06:00
CA certificate bundle file
2014-02-21 12:46:07 -06:00
:option: `--verify` | :option: `--insecure`
2013-12-05 13:23:44 -06:00
Verify or ignore server certificate (default: verify)
2014-02-21 12:46:07 -06:00
:option: `--os-identity-api-version` <identity-api-version>
2013-12-05 13:23:44 -06:00
Identity API version (Default: 2.0)
2014-02-21 12:46:07 -06:00
:option: `--os-XXXX-api-version` <XXXX-api-version>
Additional API version options will be available depending on the installed API libraries.
2013-07-29 17:05:02 -05:00
2014-06-30 19:12:27 +02:00
:option: `--os-trust-id` <trust-id>
id of the trust to use as a trustee user
2013-07-29 17:05:02 -05:00
COMMANDS
========
To get a list of the available commands::
2014-02-21 12:46:07 -06:00
openstack --help
2013-07-29 17:05:02 -05:00
To get a description of a specific command::
openstack help <command>
2013-12-05 13:23:44 -06:00
:option: `complete`
Print the bash completion functions for the current command set.
:option: `help <command>`
Print help for an individual command
2014-02-21 12:46:07 -06:00
NOTES
=====
The command list displayed in help output reflects the API versions selected. For
example, to see Identity v3 commands `` OS_IDENTITY_API_VERSION `` must be set to `` 3 `` .
2013-12-05 13:23:44 -06:00
EXAMPLES
========
Show the detailed information for server `` appweb01 `` ::
2014-02-21 12:46:07 -06:00
openstack \
--os-project-name ExampleCo \
--os-username demo --os-password secrete \
--os-auth-url http://localhost:5000:/v2.0 \
server show appweb01
2013-12-05 13:23:44 -06:00
The same command if the auth environment variables (:envvar: `OS_AUTH_URL` , :envvar: `OS_PROJECT_NAME` ,
:envvar: `OS_USERNAME` , :envvar: `OS_PASSWORD` ) are set::
openstack server show appweb01
Create a new image::
openstack image create \
--disk-format=qcow2 \
--container-format=bare \
--public \
--copy-from http://somewhere.net/foo.img \
foo
2013-07-29 17:05:02 -05:00
FILES
=====
2014-02-21 12:46:07 -06:00
:file: `~/.openstack`
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.
2013-07-29 17:05:02 -05:00
ENVIRONMENT VARIABLES
=====================
2014-02-21 12:46:07 -06:00
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.
:envvar: `OS_AUTH_URL`
Authentication URL
:envvar: `OS_DOMAIN_NAME`
Domain-level authorization scope (name or ID)
:envvar: `OS_PROJECT_NAME`
Project-level authentication scope (name or ID)
:envvar: `OS_PROJECT_DOMAIN_NAME`
Domain name or id containing project
2013-07-29 17:05:02 -05:00
:envvar: `OS_USERNAME`
2014-02-21 12:46:07 -06:00
Authentication username
:envvar: `OS_USER_DOMAIN_NAME`
Domain name or id containing user
2013-07-29 17:05:02 -05:00
:envvar: `OS_PASSWORD`
2014-02-21 12:46:07 -06:00
Authentication password
2013-07-29 17:05:02 -05:00
2014-02-21 12:46:07 -06:00
:envvar: `OS_REGION_NAME`
Authentication region name
2013-12-05 13:23:44 -06:00
2014-02-21 12:46:07 -06:00
:envvar: `OS_DEFAULT_DOMAIN`
Default domain ID (Default: ‘ default’ )
:envvar: `OS_CACERT`
CA certificate bundle file
2014-06-30 19:12:27 +02:00
:envvar: `OS_COMPUTE_API_VERSION`
2014-05-15 09:05:37 -05:00
Compute API version (Default: 2)
2014-06-30 19:12:27 +02:00
:envvar: `OS_IDENTITY_API_VERSION`
2014-02-21 12:46:07 -06:00
Identity API version (Default: 2.0)
2014-06-30 19:12:27 +02:00
:envvar: `OS_IMAGE_API_VERSION`
2014-05-15 09:05:37 -05:00
Image API version (Default: 1)
2014-06-30 19:12:27 +02:00
:envvar: `OS_VOLUME_API_VERSION`
2014-05-15 09:05:37 -05:00
Volume API version (Default: 1)
2014-06-30 19:12:27 +02:00
:envvar: `OS_XXXX_API_VERSION`
2014-02-21 12:46:07 -06:00
Additional API version options will be available depending on the installed API libraries.
2013-12-05 13:23:44 -06:00
2014-06-30 19:12:27 +02:00
:envvar: `OS_TRUST_ID`
id of the trust to use as a trustee user
2013-07-29 17:05:02 -05:00
BUGS
====
Bug reports are accepted at the python-openstackclient LaunchPad project
"https://bugs.launchpad.net/python-openstackclient/+bugs".
AUTHORS
=======
Please refer to the AUTHORS file distributed with OpenStackClient.
COPYRIGHT
=========
2014-02-21 12:46:07 -06:00
Copyright 2011-2014 OpenStack Foundation and the authors listed in the AUTHORS file.
2013-07-29 17:05:02 -05:00
LICENSE
=======
http://www.apache.org/licenses/LICENSE-2.0
SEE ALSO
========
2013-12-05 13:23:44 -06:00
The `OpenStackClient page <https://wiki.openstack.org/wiki/OpenStackClient> `_
in the `OpenStack Wiki <https://wiki.openstack.org/> `_ contains further
documentation.
The individual OpenStack project CLIs, the OpenStack API references.