# tfenv
[Terraform](https://www.terraform.io/) version manager inspired by [rbenv](https://github.com/rbenv/rbenv)

## Support
Currently tfenv supports the following OSes
- Mac OS X (64bit)
- Linux (64bit)

## Installation
1. Check out tfenv into any path
```sh
$ git clone https://github.com/kamatama41/tfenv.git /some/path/to/tfenv
```
2. Add `/some/path/to/tfenv/bin` to your `$PATH`

This is an example of adding `.zshrc`
```
if [ -f /some/path/to/tfenv/bin/tfenv ]; then
  path=(/some/path/to/tfenv/bin $path)
fi
```

## Usage
### tfenv install
Install terraform
```sh
$ tfenv install 0.7.0
```

### tfenv use
Switch a version to use
```sh
$ tfenv use 0.7.0
```

## .terraform-version
If you put `.terraform-version` file on your project root, tfenv detects it and use the version written in it.

[![Build Status](https://travis-ci.org/kamatama41/tfenv.svg?branch=master)](https://travis-ci.org/kamatama41/tfenv)

# tfenv
[Terraform](https://www.terraform.io/) version manager inspired by [rbenv](https://github.com/rbenv/rbenv)

## Support
Currently tfenv supports the following OSes
- Mac OS X (64bit)
- Linux (64bit)

## Installation
1. Check out tfenv into any path
```sh
$ git clone https://github.com/kamatama41/tfenv.git /some/path/to/tfenv
```
2. Add `/some/path/to/tfenv/bin` to your `$PATH`

This is an example of adding `.zshrc`
```
if [ -f /some/path/to/tfenv/bin/tfenv ]; then
  path=(/some/path/to/tfenv/bin $path)
fi
```

## Usage
### tfenv install
Install terraform
```sh
$ tfenv install 0.7.0
```

### tfenv use
Switch a version to use
```sh
$ tfenv use 0.7.0
```

## .terraform-version
If you put `.terraform-version` file on your project root, tfenv detects it and use the version written in it.

Add a badge of Travis CI
Add a badge of Travis CI
