Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. OpenTofu
  3. pug

pug

MPL-2.0Gov0.6.5

A terminal user interface for Terraform power users, enabling parallel operations and interactive state management.

GitHubGitHub
682 stars15 forks0 contributors

What is pug?

Pug is a terminal user interface (TUI) designed for advanced Terraform users, providing a fast and interactive way to manage infrastructure as code. It enhances the Terraform workflow by allowing parallel execution of tasks and offering a rich interface for state and resource management.

Target Audience

Infrastructure engineers and DevOps practitioners who are power users of Terraform, OpenTofu, or Terragrunt and work with complex, multi-module environments.

Value Proposition

Developers choose Pug for its keyboard-driven interface that enables parallel task execution across modules and workspaces, interactive state management with direct shortcuts, and seamless integration with tools like Infracost and Terragrunt, significantly accelerating infrastructure management workflows.

Overview

Drive terraform at terminal velocity.

Use Cases

Best For

  • Managing Terraform modules and workspaces in parallel to speed up plans and applies.
  • Interactively targeting, moving, or tainting specific resources within Terraform state via keyboard shortcuts.
  • Working with Terragrunt projects, including automatic dependency resolution and topological ordering for applies.
  • Integrating cost estimation directly into the TUI using Infracost for selected workspaces.
  • Automatically loading workspace-specific variable files (e.g., dev.tfvars) based on the active workspace name.
  • Using multiple Terraform versions per module with version managers like asdf or mise via arbitrary command execution.

Not Ideal For

  • Teams that rely exclusively on GUI-based infrastructure tools like Terraform Cloud's web interface
  • Projects with only a single, static Terraform module and no need for workspace management
  • Environments requiring detailed, automated audit logs for all command executions without manual intervention
  • Users who prefer mouse-driven interfaces over keyboard shortcuts for all operations

Pros & Cons

Pros

Parallel Task Execution

Enables concurrent runs of Terraform commands like plan and apply across multiple modules or workspaces, speeding up workflows. The README shows key bindings for multi-select and a default max-tasks of 32.

Interactive State Management

Provides direct keyboard shortcuts for targeting, moving, tainting, and deleting resources in Terraform state. The state pane key bindings include 'p' for plan -target and 'D' for state rm.

Multi-Tool and Dependency Support

Works seamlessly with Terraform, OpenTofu, and Terragrunt, including automatic dependency resolution. The README details Terragrunt mode for topological ordering and Tofu support via --program flag.

Workspace-Aware Automation

Automatically loads variable files like dev.tfvars based on workspace names, reducing manual steps. The workspace variables section explains how it passes -vars-file for plans.

Cons

Nerdfonts Dependency

Requires a patched nerdfonts font to render icons properly, adding an extra setup step that may not be available in all terminals or environments.

Complex Configuration Layers

Uses overlapping configuration methods (flags, environment variables, YAML files), which can be confusing to manage and debug, as noted in the configuration section.

Terminal-Only Interface

Lacks a graphical UI, making it unsuitable for users who prefer visual tools or need accessibility features beyond keyboard navigation.

Open Source Alternative To

pug is an open-source alternative to the following products:

Terraform Enterprise
Terraform Enterprise

A self-hosted version of Terraform Cloud that provides infrastructure as code collaboration, governance, and automation within private infrastructure.

Frequently Asked Questions

Quick Stats

Stars682
Forks15
Contributors0
Open Issues18
Last commit6 months ago
CreatedSince 2024

Tags

#go-application#devops#opentofu#terragrunt#cli-tool#terraform#infrastructure-as-code#terminal-user-interface

Built With

G
Go

Included in

Terraform6.3kOpenTofu183
Auto-fetched 1 day ago

Related Projects

terraformerterraformer

CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code

Stars14,558
Forks1,838
Last commit3 months ago
InfracostInfracost

Cloud cost intelligence for engineers, AI coding agents, and CI/CD 💰📉 Shift FinOps Left!

Stars12,386
Forks679
Last commit5 days ago
TerragruntTerragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.

Stars9,682
Forks1,208
Last commit2 days ago
atlantisatlantis

Terraform Pull Request Automation

Stars9,162
Forks1,288
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub