github.com/maheshbr/terraform@v0.3.1-0.20141020033300-deec7194a3ea/website/source/intro/getting-started/install.html.markdown (about)

     1  ---
     2  layout: "intro"
     3  page_title: "Installing Terraform"
     4  sidebar_current: "gettingstarted-install"
     5  ---
     6  
     7  # Install Terraform
     8  
     9  Terraform must first be installed on your machine. Terraform is distributed
    10  as a [binary package](/downloads.html) for all supported platforms and
    11  architecture. This page will not cover how to compile Terraform from
    12  source.
    13  
    14  ## Installing Terraform
    15  
    16  To install Terraform, find the [appropriate package](/downloads.html) for
    17  your system and download it. Terraform is packaged as a zip archive.
    18  
    19  After downloading Terraform, unzip the package into a directory where
    20  Terraform will be installed. The directory will contain a set of binary
    21  programs, such as `terraform`, `terraform-provider-aws`, etc. The final
    22  step is to make sure the directory you installed Terraform to is on the
    23  PATH. See
    24  [this page](http://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux)
    25  for instructions on setting the PATH on Linux and Mac.
    26  [This page](http://stackoverflow.com/questions/1618280/where-can-i-set-path-to-make-exe-on-windows)
    27  contains instructions for setting the PATH on Windows.
    28  
    29  ## Verifying the Installation
    30  
    31  After installing Terraform, verify the installation worked by opening a new
    32  terminal session and checking that `terraform` is available. By executing
    33  `terraform` you should see help output similar to that below:
    34  
    35  ```
    36  $ terraform
    37  usage: terraform [--version] [--help] <command> [<args>]
    38  
    39  Available commands are:
    40      apply      Builds or changes infrastructure
    41      graph      Create a visual graph of Terraform resources
    42      output     Read an output from a state file
    43      plan       Generate and show an execution plan
    44      refresh    Update local state file against real resources
    45      show       Inspect Terraform state or plan
    46      version    Prints the Terraform version
    47  ```
    48  
    49  If you get an error that `terraform` could not be found, then your PATH
    50  environment variable was not setup properly. Please go back and ensure
    51  that your PATH variable contains the directory where Terraform was installed.
    52  
    53  Otherwise, Terraform is installed and ready to go!