06be0d440d
Change-Id: I40d746c330fdcc0dc4ccf81096e26ef4c287586f Implements: blueprint cli-ref-rst
446 lines
7.9 KiB
ReStructuredText
446 lines
7.9 KiB
ReStructuredText
.. ## WARNING ######################################
|
|
.. This file is automatically generated, do not edit
|
|
.. #################################################
|
|
|
|
==============================
|
|
Deployment command-line client
|
|
==============================
|
|
|
|
The :command:`tuskar` client is the command-line interface (CLI) for
|
|
the Deployment API and its extensions.
|
|
|
|
This chapter documents :command:`tuskar` version ``0.1.18``.
|
|
|
|
For help on a specific :command:`tuskar` command, enter:
|
|
|
|
.. code-block:: console
|
|
|
|
$ tuskar help COMMAND
|
|
|
|
.. _tuskar_command_usage:
|
|
|
|
tuskar usage
|
|
~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar [-h] [--version] [-d] [--os-username OS_USERNAME]
|
|
[--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]
|
|
[--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
|
|
[--os-auth-token OS_AUTH_TOKEN] [--tuskar-url TUSKAR_URL]
|
|
[--tuskar-api-version TUSKAR_API_VERSION]
|
|
<subcommand> ...
|
|
|
|
Subcommands
|
|
-----------
|
|
|
|
``plan-add-role``
|
|
Associate role to a plan.
|
|
|
|
``plan-create``
|
|
Create a new plan.
|
|
|
|
``plan-delete``
|
|
Delete an plan by its UUID.
|
|
|
|
``plan-flavor``
|
|
Change flavor of role in the plan.
|
|
|
|
``plan-list``
|
|
Show a list of the Plans.
|
|
|
|
``plan-patch``
|
|
Change an existing plan **:[Deprecated]**.
|
|
|
|
``plan-remove-role``
|
|
Remove role from a plan.
|
|
|
|
``plan-scale``
|
|
Scale plan by changing count of roles.
|
|
|
|
``plan-show``
|
|
Show an individual Plan by its UUID.
|
|
|
|
``plan-show-flavors``
|
|
Show flavors assigned to roles of Plan.
|
|
|
|
``plan-show-scale``
|
|
Show scale counts of Plan.
|
|
|
|
``plan-templates``
|
|
Download the Heat templates for a Plan.
|
|
|
|
``plan-update``
|
|
Change an existing plan.
|
|
|
|
``role-list``
|
|
Show a list of the Roles.
|
|
|
|
``help``
|
|
Display help about this program or one of its
|
|
subcommands.
|
|
|
|
.. _tuskar_command_options:
|
|
|
|
tuskar optional arguments
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
``-h, --help``
|
|
Print this help message and exit.
|
|
|
|
``--version``
|
|
Shows the client version and exits.
|
|
|
|
``-d, --debug``
|
|
Defaults to ``env[TUSKARCLIENT_DEBUG]``.
|
|
|
|
``--os-username OS_USERNAME``
|
|
Defaults to ``env[OS_USERNAME]``
|
|
|
|
``--os-password OS_PASSWORD``
|
|
Defaults to ``env[OS_PASSWORD]``
|
|
|
|
``--os-tenant-id OS_TENANT_ID``
|
|
Defaults to ``env[OS_TENANT_ID]``
|
|
|
|
``--os-tenant-name OS_TENANT_NAME``
|
|
Defaults to ``env[OS_TENANT_NAME]``
|
|
|
|
``--os-auth-url OS_AUTH_URL``
|
|
Defaults to ``env[OS_AUTH_URL]``
|
|
|
|
``--os-auth-token OS_AUTH_TOKEN``
|
|
Defaults to ``env[OS_AUTH_TOKEN]``
|
|
|
|
``--tuskar-url TUSKAR_URL``
|
|
Defaults to ``env[TUSKAR_URL]``
|
|
|
|
``--tuskar-api-version TUSKAR_API_VERSION``
|
|
Defaults to ``env[TUSKAR_API_VERSION]`` or 2
|
|
|
|
.. _tuskar_plan-add-role:
|
|
|
|
tuskar plan-add-role
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-add-role [-h] -r <ROLE UUID> plan_uuid
|
|
|
|
Associate role to a plan.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``plan_uuid``
|
|
UUID of the Plan to assign role to.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
``-r <ROLE UUID>, --role-uuid <ROLE UUID>``
|
|
UUID of the Role to be assigned.
|
|
|
|
.. _tuskar_plan-create:
|
|
|
|
tuskar plan-create
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-create [-h] [-d <DESCRIPTION>] name
|
|
|
|
Create a new plan.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``name``
|
|
Name of the Plan to create.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
``-d <DESCRIPTION>, --description <DESCRIPTION>``
|
|
User-readable text describing the Plan.
|
|
|
|
.. _tuskar_plan-delete:
|
|
|
|
tuskar plan-delete
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-delete [-h] <PLAN>
|
|
|
|
Delete an plan by its UUID.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``<PLAN>``
|
|
UUID of the plan to delete.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
.. _tuskar_plan-flavor:
|
|
|
|
tuskar plan-flavor
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-flavor [-h] -F FLAVOR role_name plan_uuid
|
|
|
|
Change flavor of role in the plan.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``role_name``
|
|
Name of role which you want to flavor.
|
|
|
|
``plan_uuid``
|
|
UUID of the Plan to modify.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
``-F FLAVOR, --flavor FLAVOR``
|
|
Flavor which shall be assigned to role.
|
|
|
|
.. _tuskar_plan-list:
|
|
|
|
tuskar plan-list
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-list [-h]
|
|
|
|
Show a list of the Plans.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
.. _tuskar_plan-remove-role:
|
|
|
|
tuskar plan-remove-role
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-remove-role [-h] -r <ROLE UUID> plan_uuid
|
|
|
|
Remove role from a plan.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``plan_uuid``
|
|
UUID of the Plan to remove role from.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
``-r <ROLE UUID>, --role-uuid <ROLE UUID>``
|
|
UUID of the Role to be removed.
|
|
|
|
.. _tuskar_plan-scale:
|
|
|
|
tuskar plan-scale
|
|
~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-scale [-h] -C COUNT role_name plan_uuid
|
|
|
|
Scale plan by changing count of roles.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``role_name``
|
|
Name of role which you want scale.
|
|
|
|
``plan_uuid``
|
|
UUID of the Plan to modify.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
``-C COUNT, --count COUNT``
|
|
Count of nodes to be set.
|
|
|
|
.. _tuskar_plan-show:
|
|
|
|
tuskar plan-show
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-show [-h] [--verbose] [--only-empty-parameters] <PLAN>
|
|
|
|
Show an individual Plan by its UUID.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``<PLAN>``
|
|
UUID of the Plan to show.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
``--verbose``
|
|
Display full plan details
|
|
|
|
``--only-empty-parameters``
|
|
Display only parameters with empty or None value
|
|
|
|
.. _tuskar_plan-show-flavors:
|
|
|
|
tuskar plan-show-flavors
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block: console
|
|
|
|
usage: tuskar plan-show-flavors [-h] <PLAN>
|
|
|
|
Show flavors assigned to roles of Plan.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``<PLAN>``
|
|
UUID of the Plan to show a scale.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
.. _tuskar_plan-show-scale:
|
|
|
|
tuskar plan-show-scale
|
|
~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-show-scale [-h] <PLAN>
|
|
|
|
Show scale counts of Plan.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``<PLAN>``
|
|
UUID of the Plan to show a scale.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
|
|
.. _tuskar_plan-templates:
|
|
|
|
tuskar plan-templates
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-templates [-h] -O <OUTPUT DIR> plan_uuid
|
|
|
|
Download the Heat templates for a Plan.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``plan_uuid``
|
|
UUID of the Plan whose Templates will be retrieved.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
``-O <OUTPUT DIR>, --output-dir <OUTPUT DIR>``
|
|
Directory to write template files into. It will be
|
|
created if it does not exist.
|
|
|
|
.. _tuskar_plan-update:
|
|
|
|
tuskar plan-update
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar plan-update [-h] [-A <KEY1=VALUE1>] [-P <KEY1=VALUE1>] plan_uuid
|
|
|
|
Change an existing plan.
|
|
|
|
Positional arguments
|
|
--------------------
|
|
|
|
``plan_uuid``
|
|
UUID of the Plan to modify.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|
|
|
|
``-A <KEY1=VALUE1>, --attribute <KEY1=VALUE1>``
|
|
This can be specified multiple times. This argument is
|
|
deprecated, use -P and :option:`--parameter` instead.
|
|
|
|
``-P <KEY1=VALUE1>, --parameter <KEY1=VALUE1>``
|
|
This can be specified multiple times.
|
|
|
|
.. _tuskar_role-list:
|
|
|
|
tuskar role-list
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: console
|
|
|
|
usage: tuskar role-list [-h]
|
|
|
|
Show a list of the Roles.
|
|
|
|
Optional arguments
|
|
------------------
|
|
|
|
``-h, --help``
|
|
show this help message and exit
|