npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tfv

v5.0.1

Published

Terraform version manager

Readme

Use tfv to manage multiple versions of terraform with ease

     _        ________        __
   _| |__   / _____|\ \      / /
  |_  ___\ | |___    \ \    / /
    | |    |  ___|    \ \  / /
    | |___ | |         \ \/ /
    \______\_|          \__/

    Happy terraforming 😍🥂!

Installation

NOTE: tfv should be installed globally so that it can be run from anywhere on your computer.

npm install -g tfv

Run with alias

npm i -g tfv

Help

tfv --help

Run with alias

tfv -h

OUTPUT:

tfv <command>

Commands:

  tfv install <version> [option]  Install a terraform version [aliases: i]

  tfv list [option]               List installed or available terraform versions [aliases: ls]

  tfv remove <version>            Remove terraform versions from tfv store [aliases: rm]

  tfv auto-switch                 Auto-detect and switch to your project terraform version [aliases: as]

  tfv use <version>               Switch to a specified terraform version

  tfv apply                       Run terraform apply with optional file-based targets.
  Accepts all terraform flags after --
  Example:
  tfv apply --file main.tf --file network.tf -- -auto-approve -target=<TARGET> -var="env=prod"

  tfv destroy                     Run terraform destroy with optional file-based targets.
  Accepts all terraform flags after --
  Example:
  tfv destroy --file main.tf --file network.tf -- -auto-approve -target=<TARGET> -var="env=prod"

  tfv plan                        Run terraform plan with optional file-based targets.
  Accepts all terraform flags after --
  Example:
  tfv plan --file main.tf --file network.tf -- -auto-approve -target=<TARGET> -var="env=prod"

Options:
  -h, --help     Show help                                             [boolean]
  -v, --version  Show version number                                   [boolean]

Usage

https://github.com/marcdomain/tfv/assets/25563661/fa44f0f2-2dca-4f22-9fea-c74e4b8f767c

Table of Contents

Modules

  • INSTALL

| Version | Description | | ---------------- | ------------------------------------------ | | x.x.x | Installs terraform version x.x.x | | x^ | Installs latest version of release x | | x.x.^ | Installs latest version of release x.x | | latest | Installs latest version of terraform |

tfv install <version>

Run with option

tfv install <version> --arch <system-architecture>

EXAMPLE:

tfv install 1.5.7 -arch amd64

NOTE: The default system-architecture is the architecture of your computer (arm64, amd64, x64, etc...)

  • USE

| Version | Description | | ---------------- | ----------------------------------------- | | x.x.x | use terraform version x.x.x | | latest | use latest version of terraform |

tfv use <version>

NOTE: You would get a password prompt. Accept it. This is a one-time request to set the terraform executable in your system path.

  • LIST

| Option | Option Alias | Description | | ---------------|---------------|--------------------------------------------------------------------------------| | | | Defaults to listing terraform versions installed locally (in tfv store) | | --local | -l | Lists all terraform versions installed locally | | --remote | -r | Lists all terraform versions available remotely, on terraform server |

tfv list [option]

Run with alias

tfv ls [option]
  • REMOVE

Remove terraform versions managed by tfv

  tfv remove <versions>

Run with alias

  tfv rm <versions>

Example

  tfv rm x.y.z z.x.y
  • AUTO-SWITCH

Auto-detects your project terraform version, downloads it if it's not in tfv store, and switch to the version

  tfv auto-switch

Run with alias

  tfv as
  • PLAN

Run terraform plan with optional file-based targets. Parses terraform files to extract resources, data sources, and modules as targets.

  tfv plan --file main.tf

With multiple files

  tfv plan --file main.tf --file network.tf

With extra terraform flags

  tfv plan --file main.tf -- -var="env=prod" -out=plan.out
  • APPLY

Run terraform apply with optional file-based targets.

  tfv apply --file main.tf

With auto-approve

  tfv apply --file main.tf -- -auto-approve
  • DESTROY

Run terraform destroy with optional file-based targets.

  tfv destroy --file main.tf

With auto-approve

  tfv destroy --file main.tf -- -auto-approve