{"id":13505891,"url":"https://github.com/Madh93/tpm","last_synced_at":"2025-03-30T00:31:42.203Z","repository":{"id":155387326,"uuid":"628738862","full_name":"Madh93/tpm","owner":"Madh93","description":"🛠️ A package manager for Terraform providers","archived":false,"fork":false,"pushed_at":"2025-03-18T21:08:14.000Z","size":2619,"stargazers_count":80,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T03:04:21.694Z","etag":null,"topics":["cli","go","golang","opentofu","terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Madh93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-16T21:26:23.000Z","updated_at":"2025-03-18T21:08:21.000Z","dependencies_parsed_at":"2024-01-03T02:29:46.647Z","dependency_job_id":"38384564-e468-4366-b859-3643acaab937","html_url":"https://github.com/Madh93/tpm","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Ftpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Ftpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Ftpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Ftpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Madh93","download_url":"https://codeload.github.com/Madh93/tpm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246262491,"owners_count":20749170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","go","golang","opentofu","terraform","terraform-provider"],"created_at":"2024-08-01T00:01:16.381Z","updated_at":"2025-03-30T00:31:42.190Z","avatar_url":"https://github.com/Madh93.png","language":"Go","funding_links":[],"categories":["Tools"],"sub_categories":["Community providers"],"readme":"# Terraform Provider Manager\n\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\nTerraform Provider Manager (`tpm`) is a command-line interface (CLI) tool designed to simplify the management of [Terraform](https://www.terraform.io/) providers in the [plugin cache directory](https://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache). With `tpm` you can easily **install, uninstall, and list providers**, helping you to streamline your Terraform workflow.\n\nOne of the key benefits of `tpm` is that it **does not require Terraform to be installed**, making it a lightweight and efficient tool for managing your cached providers.\n\n\u003cimg alt=\"Terraform Provider Manager Demo\" src=\"docs/gif/demo.gif\"/\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e •\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e •\n  \u003ca href=\"#useful-links\"\u003eUseful Links\u003c/a\u003e •\n  \u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n### GNU/Linux\n\nArch Linux from [AUR](https://aur.archlinux.org/packages/terraform-tpm-bin) (maintained by [@jonathanio](https://github.com/jonathanio)):\n\n```shell\nyay -S terraform-tpm-bin\n```\n\n### macOS\n\nVia [Homebrew](https://brew.sh/):\n\n```shell\nbrew install madh93/tap/tpm\n```\n\n### Windows\n\nVia [Scoop](https://scoop.sh/):\n\n```shell\nscoop bucket add madh93 https://github.com/madh93/scoop-bucket.git\nscoop install tpm\n```\n\n### From releases\n\nStable binaries for all platforms are available on the [releases page](https://github.com/Madh93/tpm/releases). To install, download the binary for your platform from \"Assets\", extract the downloaded file and place `tpm` into your `PATH`:\n\n```shell\ncurl -L https://github.com/Madh93/tpm/releases/latest/download/tpm_$(uname -s)_$(uname -m).tar.gz | tar -xz -O tpm \u003e /usr/local/bin/tpm\nchmod +x /usr/local/bin/tpm\n```\n\n### Go\n\nIf you have Go installed:\n\n```shell\ngo install github.com/Madh93/tpm@latest\n```\n\n### From source\n\nInstall Go if it is not already installed. You can download it from the official [website](https://golang.org/dl).\n\nClone the Terraform Provider Manager repository to build and install the binary:\n\n```shell\ngit clone https://github.com/Madh93/tpm \u0026\u0026 cd tpm \u0026\u0026 task install\n```\n\n## Usage\n\n```shell\nTerraform Provider Manager is a simple CLI to manage Terraform providers in the Terraform plugin cache directory\n\nUsage:\n  tpm [flags]\n  tpm [command]\n\nAvailable Commands:\n  completion  Generate the autocompletion script for the specified shell\n  help        Help about any command\n  install     Install a provider\n  list        List all installed providers\n  purge       Purge all installed providers\n  uninstall   Uninstall a provider\n\nFlags:\n  -c, --config string                       config file for tpm\n  -d, --debug                               enable debug mode\n  -h, --help                                help for tpm\n  -p, --terraform-plugin-cache-dir string   the location of the Terraform plugin cache directory (default \"/home/user/.terraform.d/plugin-cache\")\n  -r, --terraform-registry string           the Terraform registry provider hostname (default \"registry.terraform.io\")\n  -v, --version                             version for tpm\n\nUse \"tpm [command] --help\" for more information about a command.\n```\n\n### Install a provider\n\nTo install a provider you only need to provide the name. Optionally, you can specify a version by using `\u003cpackage\u003e@\u003cversion\u003e`. By default, if no version is specified, the latest available version, also known as `@latest`, will be installed.\n\nYou can also specify the architecture and operating system. If not specified, the information from the system where tpm is being executed will be used.\n\n\u003cimg alt=\"Install a provider\" src=\"docs/gif/install.gif\"/\u003e\n\nIn addition, it's possible to install multiple providers at once specifying a `providers.yml` file, making it easier to share and reuse installation requirements. For example:\n\n```yaml\nproviders:\n  - name: hashicorp/aws@3.64.0\n  - name: hashicorp/http@3.3.0\n    os:\n      - linux\n      - darwin\n    arch:\n      - amd64\n      - arm64\n  - name: hashicorp/random\n    os:\n      - linux\n      - darwin\n    arch:\n      - amd64\n      - arm64\n```\n\n\u003cimg alt=\"Install providers from file\" src=\"docs/gif/install-from-file.gif\"/\u003e\n\nThe providers are installed in parallel by default. You can adjust the number of parallel jobs by using the `--jobs \u003cNUMBER\u003e` flag.\n\n### List installed providers\n\nThis will display on the screen the installed providers. Optionally, you can specify an output format. Valid output formats are:\n\n- `text` (default)\n- `json`\n- `csv`\n- `table`\n\n\u003cimg alt=\"List installed providers\" src=\"docs/gif/list.gif\"/\u003e\n\n### Uninstall a provider\n\nUninstalling a provider is exactly the same as installing it. You can specify both the version, operating system, and architecture.\n\n\u003cimg alt=\"Uninstall a provider\" src=\"docs/gif/uninstall.gif\"/\u003e\n\n### Purge all providers\n\nThis will delete all installed providers from the current registry.\n\n\u003cimg alt=\"List installed providers\" src=\"docs/gif/purge.gif\"/\u003e\n\n## Useful Links\n\n- [Terraform](https://www.terraform.io/)\n- [Terraform Registry](https://registry.terraform.io/)\n- [Terraform Providers Docs](https://developer.hashicorp.com/terraform/language/providers)\n- [Terraform Provider Plugin Cache Docs](https://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache)\n- [Terraform plugin caching](https://www.scalefactory.com/blog/2021/02/25/terraform-plugin-caching/)\n- [How to Speed Up Terraform in CI/CD Pipelines](https://infinitelambda.com/speed-up-terraform-cicd-pipeline/)\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMadh93%2Ftpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMadh93%2Ftpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMadh93%2Ftpm/lists"}