terraform/website/source/docs/commands
Mitchell Hashimoto 473a58a672 Add `terraform state list` command
This introduces the terraform state list command to list the resources
within a state. This is the first of many state management commands to
come into 0.7.

This is the first command of many to come that is considered a
"plumbing" command within Terraform (see "plumbing vs porcelain":
http://git.661346.n2.nabble.com/what-are-plumbing-and-porcelain-td2190639.html).
As such, this PR also introduces a bunch of groundwork to support
plumbing commands.

The main changes:

- Main command output is changed to split "common" and "uncommon"
  commands.

- mitchellh/cli is updated to support nested subcommands, since
  terraform state list is a nested subcommand.

- terraform.StateFilter is introduced as a way in core to filter/search
  the state files. This is very basic currently but I expect to make it
  more advanced as time goes on.

- terraform state list command is introduced to list resources in a
  state. This can take a series of arguments to filter this down.

Known issues, or things that aren't done in this PR on purpose:

- Unit tests for terraform state list are on the way. Unit tests for the
  core changes are all there.
2016-05-10 14:49:14 -04:00
..
state Add `terraform state list` command 2016-05-10 14:49:14 -04:00
apply.html.markdown docs(variables): describe order of evaluation with files 2016-03-01 17:08:57 -06:00
destroy.html.markdown docs: clarify wording around destroy/apply args 2015-06-17 10:10:23 -05:00
fmt.html.markdown command/fmt: Improve documentation for -diff and defaults (#6398) 2016-04-29 00:39:53 +01:00
get.html.markdown Add meta descriptions to all pages 2014-10-21 23:21:56 -04:00
graph.html.markdown command: Change module-depth default to -1 2016-01-20 13:58:02 -06:00
index.html.markdown Add `terraform state list` command 2016-05-10 14:14:47 -04:00
init.html.markdown Fix broken link 2016-01-14 17:13:14 -05:00
output.html.markdown Update docs 2015-05-27 17:11:31 +02:00
plan.html.markdown docs(variables): describe order of evaluation with files 2016-03-01 17:08:57 -06:00
push.html.markdown docs(variables): redundant wording 2016-03-01 17:13:05 -06:00
refresh.html.markdown docs(variables): describe order of evaluation with files 2016-03-01 17:08:57 -06:00
remote-config.html.markdown docs: Create new section for remote state backends 2016-01-18 08:08:19 +00:00
remote-pull.html.markdown website: docs for new remote commands 2015-03-04 16:35:42 -08:00
remote-push.html.markdown website: docs for new remote commands 2015-03-04 16:35:42 -08:00
remote.html.markdown Typo fix. 2015-03-13 17:37:05 -06:00
show.html.markdown command: Change module-depth default to -1 2016-01-20 13:58:02 -06:00
taint.html.markdown command/taint: -allow-missing 2015-02-26 10:56:45 -08:00
untaint.html.markdown command: Add `terraform untaint` 2016-03-11 12:38:57 -06:00
validate.html.markdown docs: Clarify use cases in docs for the validate cmd 2016-02-08 12:36:30 +00:00