From a75095aa6988d32f346913ef18859b505d5a64d5 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Wed, 17 Jun 2015 10:10:23 -0500 Subject: [PATCH] docs: clarify wording around destroy/apply args inspired by #2360 with clarification on args vs flags /cc @catsby --- website/source/docs/commands/apply.html.markdown | 2 +- website/source/docs/commands/destroy.html.markdown | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/website/source/docs/commands/apply.html.markdown b/website/source/docs/commands/apply.html.markdown index 9bb5acdbf..dec4ea19d 100644 --- a/website/source/docs/commands/apply.html.markdown +++ b/website/source/docs/commands/apply.html.markdown @@ -14,7 +14,7 @@ set of actions generated by a `terraform plan` execution plan. ## Usage -Usage: `terraform apply [options] [dir]` +Usage: `terraform apply [options] [dir-or-plan]` By default, `apply` scans the current directory for the configuration and applies the changes appropriately. However, a path to another configuration diff --git a/website/source/docs/commands/destroy.html.markdown b/website/source/docs/commands/destroy.html.markdown index 0a0f3a738..98f1b79e6 100644 --- a/website/source/docs/commands/destroy.html.markdown +++ b/website/source/docs/commands/destroy.html.markdown @@ -18,9 +18,11 @@ Usage: `terraform destroy [options] [dir]` Infrastructure managed by Terraform will be destroyed. This will ask for confirmation before destroying. -This command accepts all the flags that the -[apply command](/docs/commands/apply.html) accepts. If `-force` is -set, then the destroy confirmation will not be shown. +This command accepts all the arguments and flags that the [apply +command](/docs/commands/apply.html) accepts, with the exception of a plan file +argument. + +If `-force` is set, then the destroy confirmation will not be shown. The `-target` flag, instead of affecting "dependencies" will instead also destroy any resources that _depend on_ the target(s) specified.