README.md in terraforming-0.1.6 vs README.md in terraforming-0.2.0

- old
+ new

@@ -82,10 +82,14 @@ terraforming vpc # VPC ``` ### Export tf +```bash +$ terraforming <resource> +``` + (e.g. S3 buckets): ```bash $ terraforming s3 ``` @@ -102,12 +106,16 @@ } ``` ### Export tfstate -Specify `--tfstate` option (e.g. S3 buckets): +```bash +$ terraforming <resource> --tfstate [--merge TFSTATE_PATH] [--overwrite] +``` +(e.g. S3 buckets): + ```bash $ terraforming s3 --tfstate ``` ```json @@ -147,11 +155,10 @@ } } ``` If you want to merge exported tfstate to existing `terraform.tfstate`, specify `--tfstate --merge=/path/to/terraform.tfstate` option. -This option does NOT overwrite existing `terraform.tfstate`, but flush output to stdout like others. -You should copy output in stdout by hand or `pbcopy` command, and paste it to existing `terraform.tfstate`. +You can overwrite existing `terraform.tfstate` by specifying `--overwrite` option together. Existing `terraform.tfstate`: ```bash # /path/to/terraform.tfstate