github.com/bhameyie/otto@v0.2.1-0.20160406174117-16052efa52ec/website/source/docs/commands/infra.html.md.erb (about) 1 --- 2 layout: "docs" 3 page_title: "Commands: infra" 4 sidebar_current: "docs-commands-infra" 5 description: > 6 The infra command helps Otto manage the infrastructure for your application. 7 --- 8 9 # Command: infra 10 11 The `infra` command helps Otto create and manage the infrastructure required to 12 run your application. Otto uses [Terraform](https://www.terraform.io) internally to 13 manage infrastructure. 14 15 ## Usage 16 17 ``` 18 otto infra [subcommand] 19 ``` 20 21 Without any subcommands, `otto infra` creates resources using the infrastructure 22 provider determined in the [compile step](/docs/commands/compile.html). 23 24 The `otto infra` command is idempotent, which means it can be run again if it 25 fails for any reason. 26 27 Once the infrastructure has been created, you can use the various available 28 subcommands to interact with the running infrastructure. 29 30 * `destroy [-force]` - Tears down all resources for this infrastructure. Note 31 that you must [destroy any deployed 32 applications](/docs/commands/deploy.html) before infrastructure can 33 successfully be destroyed. Otto will ask for confirmation unless the 34 `-force` flag is specified. 35 * `info [key]` - Displays information about the infrastructure. Without a key, 36 Otto outputs all available information in `key = value` format. If you 37 provide a key name as an additional argument, Otto will only print the value 38 of that key. 39 40 A list of these subcommands are also available via `otto infra help`.