# Install terraform-local with Homebrew, Nix

CLI wrapper to deploy your Terraform applications directly to LocalStack. Version 0.26.0 via Homebrew; verified 2026-05-15.

## Install

```sh
sudo av install brew:terraform-local
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install terraform-local
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#terraform-local
```

  Evidence: nixpkgs package indexes: pkgs/by-name/te/terraform-local/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:terraform-local
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/terraform-local>
- **Version:** 0.26.0
- **Source summary:** CLI wrapper to deploy your Terraform applications directly to LocalStack
- **Homepage:** <https://localstack.cloud/>
- **Repository:** <https://github.com/localstack/terraform-local>
- **Upstream docs:** <https://docs.localstack.cloud/aws/integrations/infrastructure-as-code/terraform>
- **License:** Apache-2.0
- **Source archive:** <https://files.pythonhosted.org/packages/b9/f7/7d128b483dfd03d178c37eedc8c9329d7ee0abc4781bcfe5a0069ee63d79/terraform_local-0.26.0.tar.gz>
- **Last updated:** 2026-05-15T11:14:19Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- tflocal (cli)
- tflocal.bat (cli)
- tflocal (alias)
- tflocal.bat (alias)

## Dependencies

- python@3.14

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.26.0
- Package-manager updated: 2026-05-15
- Local data: ok
- Upstream repository: https://localstack.cloud/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

terraform-local provides `tflocal`, a wrapper that runs Terraform against LocalStack by temporarily configuring AWS provider endpoints to point at the local LocalStack API.

### Project history

The localstack/terraform-local repository was created on GitHub in March 2022. Its README describes a small wrapper script that uses Terraform's override mechanism to create a temporary `localstack_providers_override.tf` file, causing AWS provider endpoints to point to LocalStack, usually at `http://localhost:4566`.

The README's changelog starts at v0.1 and records a steady series of practical compatibility fixes: custom endpoints, `-chdir` support, provider aliases, local S3 backend handling, AWS provider version compatibility, multi-account support, semantic versioning, `AWS_ENDPOINT_URL`, dry-run behavior, additional override locations, and Terraform AWS provider 6 beta support.

### Adoption history

terraform-local's adoption is tied to LocalStack's broader use as a local AWS emulator. Developers install `tflocal` when they want Terraform plans and applies to provision local AWS-like resources without rewriting normal Terraform modules for a test environment.

The input package facts list Homebrew and Nix packaging, while the official README recommends pipx and also documents virtualenv installation. That split is typical for Python CLIs that are useful both to Python package users and to infrastructure engineers who prefer system package managers.

### How it is used

The main usage model is intentionally simple: run `tflocal` with the same arguments one would pass to `terraform`. The wrapper writes temporary provider override files, sets LocalStack service endpoints, and then invokes the configured Terraform command.

The README exposes most behavior through environment variables such as `DRY_RUN`, `TF_CMD`, `AWS_ENDPOINT_URL`, `S3_HOSTNAME`, `USE_EXEC`, service-specific endpoint variables, `AWS_DEFAULT_REGION`, `AWS_ACCESS_KEY_ID`, `SKIP_ALIASES`, and `ADDITIONAL_TF_OVERRIDE_LOCATIONS`.

### Why package nerds care

terraform-local is package-nerd significant because it is deliberately a wrapper rather than a fork or provider. It preserves the user's Terraform CLI muscle memory while interposing just enough endpoint configuration to make LocalStack work as a local target.

For users curating developer machines, CI images, or reproducible test environments, `tflocal` is the installable bridge between Terraform's upstream binary and LocalStack's AWS emulation.

### Timeline

- 2022: GitHub repository created.
- 2022: README changelog records v0.1 as the initial release.
- 2023: Changelog entries added provider aliases, S3 backend support, and multi-account support.
- 2024: Changelog records semantic versioning and `AWS_ENDPOINT_URL` support in v0.16.0.
- 2025: Changelog records Terraform AWS provider 6.0.0-beta2 compatibility in v0.23.1.
- 2026: Repository remained active during research.

### Related projects

- The official documentation and README tie terraform-local to LocalStack, Terraform, the Terraform AWS provider, Terraform override files, and local S3 backend workflows.

### Sources

- <https://api.github.com/repos/localstack/terraform-local>
- <https://docs.localstack.cloud/aws/integrations/infrastructure-as-code/terraform>
- <https://github.com/localstack/terraform-local#readme>
- source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for terraform-local. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** terraform-local
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - terraform-local: normalized package name match | nixpkgs package indexes: pkgs/by-name/te/terraform-local/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [localstack](https://www.automicvault.com/pkg/brew/localstack/) - Shares the same upstream homepage.
- [terracognita](https://www.automicvault.com/pkg/brew/terracognita/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [aiac](https://www.automicvault.com/pkg/brew/aiac/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cdktf](https://www.automicvault.com/pkg/brew/cdktf/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [cloudformation-cli](https://www.automicvault.com/pkg/brew/cloudformation-cli/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure, infrastructure-as-code.
- [kuzco](https://www.automicvault.com/pkg/brew/kuzco/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [org-formation](https://www.automicvault.com/pkg/brew/org-formation/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure, infrastructure-as-code.
- [pug](https://www.automicvault.com/pkg/brew/pug/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, terraform.
- [rain](https://www.automicvault.com/pkg/brew/rain/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure, infrastructure-as-code.
- [awscli-local](https://www.automicvault.com/pkg/brew/awscli-local/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, bat, cli, cloud, cloud-infrastructure.
- [cf2tf](https://www.automicvault.com/pkg/brew/cf2tf/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, code.
- [sceptre](https://www.automicvault.com/pkg/brew/sceptre/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, code.

## Combined YAML source

View the package source record on GitHub. [combined/terraform-local.yml](https://github.com/automic-vault/db/blob/main/combined/terraform-local.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
