Skip to content

Viewing YAML in the Terminal on Linux with fx

fx isn't just for JSON — it can open and explore YAML files too, making it a powerful TUI tool for structured data right in your Linux terminal.

Open a YAML File

bash
fx config.yaml

or explicitly:

bash
fx --yaml config.yaml

fx detects the .yaml or .yml extension and parses it automatically. The data is shown in an interactive TUI, just like JSON.

Features

  • TUI navigation for YAML content
  • Expand/collapse nested structures
  • And much more!

Example: config.yaml

yaml
server:
  port: 8080
  ssl: true
features:
  - auth
  - metrics

Command

bash
fx config.yaml

In Terminal (TUI)

You'll see a fully navigable structure:

json
{
  "server": {
    "port": 8080,
    "ssl": true
  },
  "features": [
    "auth",
    "metrics"
  ]
}

Summary

With built-in YAML support, fx becomes a clean, fast, and keyboard-driven TUI viewer for both JSON and YAML in the Linux terminal — no conversions or extra tools needed.