tfui latest

Chdir Picker

Overview

Select the chdir: the member of the project that tfui runs terraform in. Selecting a member switches the chdir, resets the workspace to default, and returns you to Context.

Screenshot

Chdir Picker

Interactive (TUI)

The picker has no key on Home: press Enter on the Chdir field of Context. With a single member, tfui switches to it without showing the list.

Keybindings

Key Action When
j / k / ↑ / ↓ Navigate up/down List
Enter Select member List
Esc Cancel and return to Context Always

Flow

Context ──→ Chdir Picker (list)
               │
               ├── Enter → switch to that member, with workspace `default` → back to Context
               └── Esc → Cancel → back to Context

Command Line (CLI)

Has no command of its own. Use the -chdir flag:

tfui plan -project ./infra -chdir modules/networking

Equivalence

Goal CLI TUI
Select member -chdir <member> flag Context → Chdir → select
  • Context – opens the picker, and shows how members are declared
  • Configuration – declaring members in tfui.hcl

Edit this page on GitHub