Skip to content

Commit

Permalink
Add installation step using pkgx
Browse files Browse the repository at this point in the history
  • Loading branch information
kishaningithub committed Jun 7, 2024
1 parent 90804c3 commit d9da02f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Tool to generate terraform import statements to simplify state migrations from o
* [Installation](#installation)
* [Using Homebrew (Mac and linux)](#using-homebrew-mac-and-linux)
* [Using docker](#using-docker)
* [Using pkgx](#using-pkgx)
* [Others](#others)
* [Examples](#examples)
* [Generating import statements by module](#generating-import-statements-by-module)
Expand All @@ -37,6 +38,20 @@ alias tf-import-gen="docker run -i ghcr.io/kishaningithub/tf-import-gen:latest"
terraform show -json | tf-import-gen
```

### Using pkgx

```bash
terraform show -json | pkgx tf-import-gen@latest
```

or if you prefer the env style which only adds tf-import-gen to your current shell session

```bash
env +tf-import-gen@latest

terraform show -json | tf-import-gen --version
```

### Others

Head over to the [releases page](https://github.com/kishaningithub/tf-import-gen/releases) and download a binary for your platform
Expand Down

0 comments on commit d9da02f

Please sign in to comment.