From 4df04e0878b223ddf987d1f0d2b49af317363c5c Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Wed, 1 Apr 2015 09:49:36 -0700 Subject: [PATCH] website: document detailed exit codes for plan --- website/source/docs/commands/plan.html.markdown | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/source/docs/commands/plan.html.markdown b/website/source/docs/commands/plan.html.markdown index e05c460ce..1c0b1b68a 100644 --- a/website/source/docs/commands/plan.html.markdown +++ b/website/source/docs/commands/plan.html.markdown @@ -28,6 +28,13 @@ The command-line flags are all optional. The list of available flags are: * `-destroy` - If set, generates a plan to destroy all the known resources. +* `-detailed-exitcode` - Return a detailed exit code when the command exits. + When provided, this argument changes the exit codes and their meanings to + provide more granular information about what the resulting plan contains: + * 0 = Succeeded with empty diff (no changes) + * 1 = Error + * 2 = Succeeded with non-empty diff (changes present) + * `-input=true` - Ask for input for variables if not directly set. * `-module-depth=n` - Specifies the depth of modules to show in the output.