Warning
The heat CLI is deprecated in favor of python-openstackclient.
The heat client is the command-line interface (CLI) for the Orchestration service (heat) API and its extensions.
This chapter documents heat version 1.8.0
.
For help on a specific heat command, enter:
$ heat help COMMAND
usage: heat [--version] [-d] [-v] [--api-timeout API_TIMEOUT]
[--os-no-client-auth] [--heat-url HEAT_URL]
[--heat-api-version HEAT_API_VERSION] [--include-password] [-k]
[--os-cert OS_CERT] [--cert-file OS_CERT] [--os-key OS_KEY]
[--key-file OS_KEY] [--os-cacert <ca-certificate-file>]
[--ca-file OS_CACERT] [--os-username OS_USERNAME]
[--os-user-id OS_USER_ID] [--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]
[--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
[--os-region-name OS_REGION_NAME] [--os-auth-token OS_AUTH_TOKEN]
[--os-service-type OS_SERVICE_TYPE]
[--os-endpoint-type OS_ENDPOINT_TYPE] [--profile HMAC_KEY]
<subcommand> ...
Subcommands:
action-check
action-resume
action-suspend
build-info
config-create
config-delete
config-list
config-show
deployment-create
deployment-delete
deployment-list
deployment-metadata-show
deployment-output-show
deployment-show
event
event-list
event-show
hook-clear
hook-poll
output-list
output-show
resource-list
resource-mark-unhealthy
resource-metadata
resource-show
resource-signal
resource-template
resource-type-list
resource-type-show
resource-type-template
service-list
snapshot-delete
snapshot-list
snapshot-show
stack-abandon
stack-adopt
stack-cancel-update
stack-create
stack-delete
stack-list
stack-preview
stack-restore
stack-show
stack-snapshot
stack-update
template-function-list
template-show
template-validate
template-version-list
bash-completion
help
--version
-d, --debug
env[HEATCLIENT_DEBUG]
.-v, --verbose
--api-timeout API_TIMEOUT
--os-no-client-auth
env[OS_NO_CLIENT_AUTH]
.--heat-url HEAT_URL
env[HEAT_URL]
.--heat-api-version HEAT_API_VERSION
env[HEAT_API_VERSION]
or 1.--include-password
-k, --insecure
--os-cert OS_CERT
--cert-file OS_CERT
--os-key OS_KEY
--key-file OS_KEY
--os-cacert <ca-certificate-file>
--ca-file OS_CACERT
--os-username OS_USERNAME
env[OS_USERNAME]
.--os-user-id OS_USER_ID
env[OS_USER_ID]
.--os-user-domain-id OS_USER_DOMAIN_ID
env[OS_USER_DOMAIN_ID]
.--os-user-domain-name OS_USER_DOMAIN_NAME
env[OS_USER_DOMAIN_NAME]
.--os-project-id OS_PROJECT_ID
env[OS_PROJECT_ID]
.--os-project-name OS_PROJECT_NAME
env[OS_PROJECT_NAME]
.--os-project-domain-id OS_PROJECT_DOMAIN_ID
env[OS_PROJECT_DOMAIN_ID]
.--os-project-domain-name OS_PROJECT_DOMAIN_NAME
env[OS_PROJECT_DOMAIN_NAME]
.--os-password OS_PASSWORD
env[OS_PASSWORD]
.--os-tenant-id OS_TENANT_ID
env[OS_TENANT_ID]
.--os-tenant-name OS_TENANT_NAME
env[OS_TENANT_NAME]
.--os-auth-url OS_AUTH_URL
env[OS_AUTH_URL]
.--os-region-name OS_REGION_NAME
env[OS_REGION_NAME]
.--os-auth-token OS_AUTH_TOKEN
env[OS_AUTH_TOKEN]
.--os-service-type OS_SERVICE_TYPE
env[OS_SERVICE_TYPE]
.--os-endpoint-type OS_ENDPOINT_TYPE
env[OS_ENDPOINT_TYPE]
.--profile HMAC_KEY
usage: heat action-check <NAME or ID>
Check that stack resources are in expected states.
Positional arguments:
<NAME or ID>
usage: heat action-resume <NAME or ID>
Resume the stack.
Positional arguments:
<NAME or ID>
usage: heat action-suspend <NAME or ID>
Suspend the stack.
Positional arguments:
<NAME or ID>
usage: heat config-create [-f <FILE or URL>] [-c <FILE or URL>]
[-g <GROUP_NAME>]
<CONFIG_NAME>
Create a software configuration.
Positional arguments:
<CONFIG_NAME>
Optional arguments:
-f <FILE or URL>, --definition-file <FILE or URL>
-c <FILE or URL>, --config-file <FILE or URL>
-g <GROUP_NAME>, --group <GROUP_NAME>
usage: heat config-delete <ID> [<ID> ...]
Delete the software configuration(s).
Positional arguments:
<ID>
usage: heat config-list [-l <LIMIT>] [-m <ID>]
List software configs.
Optional arguments:
-l <LIMIT>, --limit <LIMIT>
-m <ID>, --marker <ID>
usage: heat config-show [-c] <ID>
View details of a software configuration.
Positional arguments:
<ID>
Optional arguments:
-c, --config-only
usage: heat deployment-create [-i <KEY=VALUE>] [-a <ACTION>] [-c <CONFIG>] -s
<SERVER> [-t <TRANSPORT>]
[--container <CONTAINER_NAME>]
[--timeout <TIMEOUT>]
<DEPLOY_NAME>
Create a software deployment.
Positional arguments:
<DEPLOY_NAME>
Optional arguments:
-i <KEY=VALUE>, --input-value <KEY=VALUE>
-a <ACTION>, --action <ACTION>
-c <CONFIG>, --config <CONFIG>
-s <SERVER>, --server <SERVER>
-t <TRANSPORT>, --signal-transport <TRANSPORT>
--container <CONTAINER_NAME>
--timeout <TIMEOUT>
usage: heat deployment-delete <ID> [<ID> ...]
Delete the software deployment(s).
Positional arguments:
<ID>
usage: heat deployment-list [-s <SERVER>]
List software deployments.
Optional arguments:
-s <SERVER>, --server <SERVER>
usage: heat deployment-metadata-show <ID>
Get deployment configuration metadata for the specified server.
Positional arguments:
<ID>
usage: heat deployment-output-show [-a] [-F <FORMAT>] <ID> [<OUTPUT NAME>]
Show a specific deployment output.
Positional arguments:
<ID>
<OUTPUT NAME>
Optional arguments:
-a, --all
-F <FORMAT>, --format <FORMAT>
usage: heat deployment-show <ID>
Show the details of a software deployment.
Positional arguments:
<ID>
usage: heat event-list [-r <RESOURCE>] [-f <KEY1=VALUE1;KEY2=VALUE2...>]
[-l <LIMIT>] [-m <ID>] [-n <DEPTH>] [-F <FORMAT>]
<NAME or ID>
List events for a stack.
Positional arguments:
<NAME or ID>
Optional arguments:
-r <RESOURCE>, --resource <RESOURCE>
-f <KEY1=VALUE1;KEY2=VALUE2...>, --filters <KEY1=VALUE1;KEY2=VALUE2...>
-l <LIMIT>, --limit <LIMIT>
-m <ID>, --marker <ID>
-n <DEPTH>, --nested-depth <DEPTH>
-F <FORMAT>, --format <FORMAT>
usage: heat event-show <NAME or ID> <RESOURCE> <EVENT>
Describe the event.
Positional arguments:
<NAME or ID>
<RESOURCE>
<EVENT>
usage: heat hook-clear [--pre-create] [--pre-update] [--pre-delete]
<NAME or ID> <RESOURCE> [<RESOURCE> ...]
Clear hooks on a given stack.
Positional arguments:
<NAME or ID>
<RESOURCE>
Optional arguments:
--pre-create
--pre-update
--pre-delete
usage: heat hook-poll [-n <DEPTH>] <NAME or ID>
List resources with pending hook for a stack.
Positional arguments:
<NAME or ID>
Optional arguments:
-n <DEPTH>, --nested-depth <DEPTH>
usage: heat output-list <NAME or ID>
Show available outputs.
Positional arguments:
<NAME or ID>
usage: heat output-show [-F <FORMAT>] [-a] [--with-detail]
<NAME or ID> [<OUTPUT NAME>]
Show a specific stack output.
Positional arguments:
<NAME or ID>
<OUTPUT NAME>
Optional arguments:
-F <FORMAT>, --format <FORMAT>
-a, --all
--with-detail
usage: heat resource-list [-n <DEPTH>] [--with-detail] [-f <KEY=VALUE>]
<NAME or ID>
Show list of resources belonging to a stack.
Positional arguments:
<NAME or ID>
Optional arguments:
-n <DEPTH>, --nested-depth <DEPTH>
--with-detail
-f <KEY=VALUE>, --filter <KEY=VALUE>
usage: heat resource-mark-unhealthy [--reset] <NAME or ID> <RESOURCE> [reason]
Set resource's health.
Positional arguments:
<NAME or ID>
<RESOURCE>
reason
Optional arguments:
--reset
usage: heat resource-metadata <NAME or ID> <RESOURCE>
List resource metadata.
Positional arguments:
<NAME or ID>
<RESOURCE>
usage: heat resource-show [-a <ATTRIBUTE>] <NAME or ID> <RESOURCE>
Describe the resource.
Positional arguments:
<NAME or ID>
<RESOURCE>
Optional arguments:
-a <ATTRIBUTE>, --with-attr <ATTRIBUTE>
usage: heat resource-signal [-D <DATA>] [-f <FILE>] <NAME or ID> <RESOURCE>
Send a signal to a resource.
Positional arguments:
<NAME or ID>
<RESOURCE>
Optional arguments:
-D <DATA>, --data <DATA>
-f <FILE>, --data-file <FILE>
usage: heat resource-type-list [-f <KEY1=VALUE1;KEY2=VALUE2...>]
List the available resource types.
Optional arguments:
-f <KEY1=VALUE1;KEY2=VALUE2...>, --filters <KEY1=VALUE1;KEY2=VALUE2...>
usage: heat resource-type-show <RESOURCE_TYPE>
Show the resource type.
Positional arguments:
<RESOURCE_TYPE>
usage: heat resource-type-template [-t <TEMPLATE_TYPE>] [-F <FORMAT>]
<RESOURCE_TYPE>
Generate a template based on a resource type.
Positional arguments:
<RESOURCE_TYPE>
Optional arguments:
-t <TEMPLATE_TYPE>, --template-type <TEMPLATE_TYPE>
-F <FORMAT>, --format <FORMAT>
usage: heat snapshot-delete <NAME or ID> <SNAPSHOT>
Delete a snapshot of a stack.
Positional arguments:
<NAME or ID>
<SNAPSHOT>
usage: heat snapshot-list <NAME or ID>
List the snapshots of a stack.
Positional arguments:
<NAME or ID>
usage: heat snapshot-show <NAME or ID> <SNAPSHOT>
Show a snapshot of a stack.
Positional arguments:
<NAME or ID>
<SNAPSHOT>
usage: heat stack-abandon [-O <FILE>] <NAME or ID>
Abandon the stack. This will delete the record of the stack from Heat, but will not delete any of the underlying resources. Prints an adoptable JSON representation of the stack to stdout or a file on success.
Positional arguments:
<NAME or ID>
Optional arguments:
-O <FILE>, --output-file <FILE>
usage: heat stack-adopt [-e <FILE or URL>] [-c <TIMEOUT>] [-t <TIMEOUT>]
[-a <FILE or URL>] [-r]
[-P <KEY1=VALUE1;KEY2=VALUE2...>]
<STACK_NAME>
Adopt a stack.
Positional arguments:
<STACK_NAME>
Optional arguments:
-e <FILE or URL>, --environment-file <FILE or URL>
-c <TIMEOUT>, --create-timeout <TIMEOUT>
-t <TIMEOUT>, --timeout <TIMEOUT>
-a <FILE or URL>, --adopt-file <FILE or URL>
-r, --enable-rollback
-P <KEY1=VALUE1;KEY2=VALUE2...>, --parameters <KEY1=VALUE1;KEY2=VALUE2...>
usage: heat stack-cancel-update <NAME or ID>
Cancel currently running update of the stack.
Positional arguments:
<NAME or ID>
usage: heat stack-create [-f <FILE>] [-e <FILE or URL>]
[--pre-create <RESOURCE>] [-u <URL>] [-o <URL>]
[-c <TIMEOUT>] [-t <TIMEOUT>] [-r]
[-P <KEY1=VALUE1;KEY2=VALUE2...>] [-Pf <KEY=FILE>]
[--poll [SECONDS]] [--tags <TAG1,TAG2>]
<STACK_NAME>
Create the stack.
Positional arguments:
<STACK_NAME>
Optional arguments:
-f <FILE>, --template-file <FILE>
-e <FILE or URL>, --environment-file <FILE or URL>
--pre-create <RESOURCE>
-u <URL>, --template-url <URL>
-o <URL>, --template-object <URL>
-c <TIMEOUT>, --create-timeout <TIMEOUT>
-t <TIMEOUT>, --timeout <TIMEOUT>
-r, --enable-rollback
-P <KEY1=VALUE1;KEY2=VALUE2...>, --parameters <KEY1=VALUE1;KEY2=VALUE2...>
-Pf <KEY=FILE>, --parameter-file <KEY=FILE>
--poll [SECONDS]
--tags <TAG1,TAG2>
usage: heat stack-delete [-y] <NAME or ID> [<NAME or ID> ...]
Delete the stack(s).
Positional arguments:
<NAME or ID>
Optional arguments:
-y, --yes
usage: heat stack-list [-s] [-n] [-a] [-f <KEY1=VALUE1;KEY2=VALUE2...>]
[-t <TAG1,TAG2...>] [--tags-any <TAG1,TAG2...>]
[--not-tags <TAG1,TAG2...>]
[--not-tags-any <TAG1,TAG2...>] [-l <LIMIT>] [-m <ID>]
[-k <KEY1;KEY2...>] [-d [asc|desc]] [-g] [-o]
List the user's stacks.
Optional arguments:
-s, --show-deleted
-n, --show-nested
-a, --show-hidden
-f <KEY1=VALUE1;KEY2=VALUE2...>, --filters <KEY1=VALUE1;KEY2=VALUE2...>
-t <TAG1,TAG2...>, --tags <TAG1,TAG2...>
--tags-any <TAG1,TAG2...>
--not-tags <TAG1,TAG2...>
--not-tags-any <TAG1,TAG2...>
-l <LIMIT>, --limit <LIMIT>
-m <ID>, --marker <ID>
-k <KEY1;KEY2...>, --sort-keys <KEY1;KEY2...>
-d [asc|desc], --sort-dir [asc|desc]
-g, --global-tenant
-o, --show-owner
usage: heat stack-preview [-f <FILE>] [-e <FILE or URL>] [-u <URL>] [-o <URL>]
[-t <TIMEOUT>] [-r]
[-P <KEY1=VALUE1;KEY2=VALUE2...>] [-Pf <KEY=FILE>]
[--tags <TAG1,TAG2>]
<STACK_NAME>
Preview the stack.
Positional arguments:
<STACK_NAME>
Optional arguments:
-f <FILE>, --template-file <FILE>
-e <FILE or URL>, --environment-file <FILE or URL>
-u <URL>, --template-url <URL>
-o <URL>, --template-object <URL>
-t <TIMEOUT>, --timeout <TIMEOUT>
-r, --enable-rollback
-P <KEY1=VALUE1;KEY2=VALUE2...>, --parameters <KEY1=VALUE1;KEY2=VALUE2...>
-Pf <KEY=FILE>, --parameter-file <KEY=FILE>
--tags <TAG1,TAG2>
usage: heat stack-restore <NAME or ID> <SNAPSHOT>
Restore a snapshot of a stack.
Positional arguments:
<NAME or ID>
<SNAPSHOT>
usage: heat stack-show [--no-resolve-outputs] <NAME or ID>
Describe the stack.
Positional arguments:
<NAME or ID>
Optional arguments:
--no-resolve-outputs
usage: heat stack-snapshot [-n <NAME>] <NAME or ID>
Make a snapshot of a stack.
Positional arguments:
<NAME or ID>
Optional arguments:
-n <NAME>, --name <NAME>
usage: heat stack-update [-f <FILE>] [-e <FILE or URL>]
[--pre-update <RESOURCE>] [-u <URL>] [-o <URL>]
[-t <TIMEOUT>] [-r] [--rollback <VALUE>] [-y] [-n]
[-P <KEY1=VALUE1;KEY2=VALUE2...>] [-Pf <KEY=FILE>]
[-x] [-c <PARAMETER>] [--tags <TAG1,TAG2>]
<NAME or ID>
Update the stack.
Positional arguments:
<NAME or ID>
Optional arguments:
-f <FILE>, --template-file <FILE>
-e <FILE or URL>, --environment-file <FILE or URL>
--pre-update <RESOURCE>
-u <URL>, --template-url <URL>
-o <URL>, --template-object <URL>
-t <TIMEOUT>, --timeout <TIMEOUT>
-r, --enable-rollback
--rollback <VALUE>
-y, --dry-run
-n, --show-nested
-P <KEY1=VALUE1;KEY2=VALUE2...>, --parameters <KEY1=VALUE1;KEY2=VALUE2...>
-Pf <KEY=FILE>, --parameter-file <KEY=FILE>
-x, --existing
-c <PARAMETER>, --clear-parameter <PARAMETER>
--tags <TAG1,TAG2>
usage: heat template-function-list <TEMPLATE_VERSION>
List the available functions.
Positional arguments:
<TEMPLATE_VERSION>
usage: heat template-show <NAME or ID>
Get the template for the specified stack.
Positional arguments:
<NAME or ID>
usage: heat template-validate [-u <URL>] [-f <FILE>] [-e <FILE or URL>]
[-o <URL>] [-n]
[-P <KEY1=VALUE1;KEY2=VALUE2...>]
[-I <ERR1,ERR2...>]
Validate a template with parameters.
Optional arguments:
-u <URL>, --template-url <URL>
-f <FILE>, --template-file <FILE>
-e <FILE or URL>, --environment-file <FILE or URL>
-o <URL>, --template-object <URL>
-n, --show-nested
-P <KEY1=VALUE1;KEY2=VALUE2...>, --parameters <KEY1=VALUE1;KEY2=VALUE2...>
-I <ERR1,ERR2...>, --ignore-errors <ERR1,ERR2...>
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.