Skip to content

Commit

Permalink
Provide cinder CLI man page.
Browse files Browse the repository at this point in the history
Provide basic but hopefully useful man page.

shell.rst was merged into and replaced by the man page in HTML docs.

pbr is used to determine version.

Docs copyright was changed to more accurate "OpenStack Contributors".

Fixes: bug 1206968
Implements: blueprint clients-man-pages
Change-Id: Iedd7b4b161ced564833fd9433762b87a4c1a374d
  • Loading branch information
Jakub Ruzicka committed Aug 5, 2013
1 parent 55b2161 commit e04232b
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 4 deletions.
13 changes: 9 additions & 4 deletions doc/source/conf.py
Expand Up @@ -13,6 +13,7 @@

import os
import sys
import pbr.version

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -43,16 +44,16 @@

# General information about the project.
project = 'python-cinderclient'
copyright = 'Rackspace, based on work by Jacob Kaplan-Moss'
copyright = 'OpenStack Contributors'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
version_info = pbr.version.VersionInfo('python-cinderclient')
# The short X.Y version.
version = '2.6'
version = version_info.version_string()
# The full version, including alpha/beta/rc tags.
release = '2.6.10'
release = version_info.release_string()

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -93,6 +94,10 @@
#modindex_common_prefix = []


man_pages = [
('man/cinder', 'cinder', u'Client for OpenStack Block Storage API',
[u'OpenStack Contributors'], 1),
]
# -- Options for HTML output --------------------------------------------------

# The theme to use for HTML and HTML Help pages. Major themes that come with
Expand Down
2 changes: 2 additions & 0 deletions doc/source/index.rst
Expand Up @@ -24,6 +24,8 @@ In order to use the CLI, you must provide your OpenStack username, password, ten

Once you've configured your authentication parameters, you can run ``cinder help`` to see a complete listing of available commands.

See also :doc:`/man/cinder`.


Release Notes
=============
Expand Down
58 changes: 58 additions & 0 deletions doc/source/man/cinder.rst
@@ -0,0 +1,58 @@
==============================
:program:`cinder` CLI man page
==============================

.. program:: cinder
.. highlight:: bash


SYNOPSIS
========

:program:`cinder` [options] <command> [command-options]

:program:`cinder help`

:program:`cinder help` <command>


DESCRIPTION
===========

The :program:`cinder` command line utility interacts with OpenStack Block
Storage Service (Cinder).

In order to use the CLI, you must provide your OpenStack username, password,
project (historically called tenant), and auth endpoint. You can use
configuration options :option:`--os-username`, :option:`--os-password`,
:option:`--os-tenant-name` or :option:`--os-tenant-id`, and
:option:`--os-auth-url` or set corresponding environment variables::

export OS_USERNAME=user
export OS_PASSWORD=pass
export OS_TENANT_NAME=myproject
export OS_AUTH_URL=http://auth.example.com:5000/v2.0

You can select an API version to use by :option:`--os-volume-api-version`
option or by setting corresponding environment variable::

export OS_VOLUME_API_VERSION=2


OPTIONS
=======

To get a list of available commands and options run::

cinder help

To get usage and options of a command::

cinder help <command>


BUGS
====

Cinder client is hosted in Launchpad so you can view current bugs at
https://bugs.launchpad.net/python-cinderclient/.

0 comments on commit e04232b

Please sign in to comment.