53 lines
1.4 KiB
ReStructuredText
Raw Normal View History

The :program:`nova` shell utility
=================================
2011-01-25 14:01:22 -06:00
.. program:: nova
2011-01-25 14:01:22 -06:00
.. highlight:: bash
The :program:`nova` shell utility interacts with OpenStack Nova API
from the command line. It supports the entirety of the OpenStack Nova API.
2011-01-25 14:01:22 -06:00
First, you'll need an OpenStack Nova account and an API key. You get this
by using the `nova-manage` command in OpenStack Nova.
2011-01-25 14:01:22 -06:00
You'll need to provide :program:`nova` with your OpenStack username and
API key. You can do this with the :option:`--os-username`, :option:`--os-password`
and :option:`--os-tenant-id` options, but it's easier to just set them as
2011-06-13 16:16:58 +04:00
environment variables by setting two environment variables:
2011-01-25 14:01:22 -06:00
.. envvar:: OS_USERNAME
2011-01-25 14:01:22 -06:00
Your OpenStack Nova username.
2011-01-25 14:01:22 -06:00
.. envvar:: OS_PASSWORD
2011-01-25 14:01:22 -06:00
2011-11-09 07:10:46 -08:00
Your password.
2011-01-25 14:01:22 -06:00
.. envvar:: OS_TENANT_NAME
2011-06-13 16:16:58 +04:00
Project for work.
.. envvar:: OS_AUTH_URL
The OpenStack API server URL.
.. envvar:: OS_COMPUTE_API_VERSION
2011-08-07 14:00:23 -05:00
The OpenStack API version.
2011-01-25 14:01:22 -06:00
For example, in Bash you'd use::
export OS_USERNAME=yourname
export OS_PASSWORD=yadayadayada
export OS_TENANT_NAME=myproject
export OS_AUTH_URL=http://...
export OS_COMPUTE_API_VERSION=2
2011-01-25 14:01:22 -06:00
From there, all shell commands take the form::
nova <command> [arguments...]
2011-01-25 14:01:22 -06:00
Run :program:`nova help` to get a full list of all possible commands,
and run :program:`nova help <command>` to get detailed help for that
command.