openstack-manuals/doc/common/section_cli_help.xml
Sandro Tosi aef24a1847 Typos and spellings errors in common/ dir
This is another series of typo/spelling errors fixing, in particular for
common/ dir

Change-Id: I04c0d5b2fe7d72e120b82da9039d116ad4c802cc
Closes-Bug: #1356460
2014-08-14 10:42:15 +01:00

77 lines
3.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="5.0"
xml:id="cli_help">
<title>Get help for client commands</title>
<para>To get usage information, including a list of commands with
descriptions, for a client, run the following command:</para>
<screen><prompt>$</prompt> <userinput><replaceable>CLIENT_NAME</replaceable> help</userinput></screen>
<para>For example, to get help information for the swift client,
run the following command:</para>
<screen><prompt>$</prompt> <userinput>swift help</userinput></screen>
<screen><?db-font-size 65%?><computeroutput>Usage: swift [--version] [--help] [--snet] [--verbose]
[--debug] [--quiet] [--auth &lt;auth_url>]
[--auth-version &lt;auth_version>] [--user &lt;username>]
[--key &lt;api_key>] [--retries &lt;num_retries>]
[--os-username &lt;auth-user-name>] [--os-password &lt;auth-password>]
[--os-tenant-id &lt;auth-tenant-id>]
[--os-tenant-name &lt;auth-tenant-name>]
[--os-auth-url &lt;auth-url>] [--os-auth-token &lt;auth-token>]
[--os-storage-url &lt;storage-url>] [--os-region-name &lt;region-name>]
[--os-service-type &lt;service-type>]
[--os-endpoint-type &lt;endpoint-type>]
[--os-cacert &lt;ca-certificate>] [--insecure]
[--no-ssl-compression]
&lt;subcommand> ...
Command-line interface to the OpenStack Swift API.
Positional arguments:
&lt;subcommand>
delete Delete a container or objects within a container
download Download objects from containers
list Lists the containers for the account or the objects
for a container
post Updates meta information for the account, container,
or object
stat Displays information for the account, container,
or object
upload Uploads files or directories to the given container
Examples:
swift -A https://auth.api.rackspacecloud.com/v1.0 -U user -K api_key stat -v
swift --os-auth-url https://api.example.com/v2.0 --os-tenant-name tenant \
--os-username user --os-password password list
swift --os-auth-token 6ee5eb33efad4e45ab46806eac010566 \
--os-storage-url https://10.1.5.2:8080/v1/AUTH_ced809b6a4baea7aeab61a \
list
swift list --lh</computeroutput></screen>
<note>
<para>Depending on your credentials, you might not have
permission to use every command.</para>
</note>
<para>After the <option>help</option> command, you can enter a
command name to get help for that command, as follows:</para>
<screen><prompt>$</prompt> <userinput><replaceable>CLIENT_NAME</replaceable> help <replaceable>COMMAND_NAME</replaceable></userinput></screen>
<para>For example, to get help for the glance
<command>image-show</command> command, enter the following
command:</para>
<screen><prompt>$</prompt> <userinput>glance help image-show</userinput></screen>
<para>The command returns a description of the command and its
positional and optional arguments:</para>
<screen><?db-font-size 75%?><computeroutput>usage: glance image-show [--human-readable] &lt;IMAGE>
Describe a specific image.
Positional arguments:
&lt;IMAGE> Name or ID of image to describe.
Optional arguments:
--human-readable Print image size in a human-friendly format.</computeroutput></screen>
</section>