For those who frequently operate within a terminal environment, transitioning to a full-fledged spreadsheet application merely to view a spreadsheet can seem excessive. This is precisely where Xleak proves invaluable. This tool empowers users to access and navigate spreadsheets directly through the terminal, streamlining workflows, especially for professionals working with data pipelines in languages like Python, utilizing libraries such as pandas or polars. Instead of breaking your workflow to inspect data artifacts in formats like CSV or Excel files, Xleak provides a seamless solution.
Understanding Xleak: Overview and Purpose
Xleak stands out as a specialized terminal viewer designed specifically for Excel spreadsheets. By allowing you to open xlsx files directly within your command line interface, it presents rows and columns in an organized, scrollable format. The interactive mode is particularly beneficial for handling large spreadsheets that may not fit on a single display screen, facilitating easier navigation.
This intuitive tool is especially useful when immediate access to spreadsheet data is required—whether verifying values during debugging, reviewing reports, or quickly examining exported data. Rather than launching a resource-heavy desktop application, users can efficiently execute a command directly in their terminal.

Despite being a relatively recent addition to the toolset, initial tests revealed some minor imperfections, such as remnants of command text appearing in the interface. Although it’s not without flaws, Xleak is functional and significantly enhances the workflow for those who predominantly work with Excel files. Currently, there is ongoing consideration for adding CSV file support, which would further increase its utility.
Installing Xleak: Step-by-Step Guide
Setting up Xleak is a straightforward process across various operating systems.
- macOS or Linux: Utilize Homebrew for a quick installation. If you already manage packages with Brew, you can install Xleak in just minutes.
- Windows: If you’re using Scoop, first add the necessary bucket and then proceed with the installation.
brew install bgreenwell/tap/xleak
scoop bucket add bgreenwell https://github.com/bgreenwell/scoop-bucket && scoop install xleak
After installation, running the command xleak in your terminal will confirm the setup was successful.
Xleak Configuration Options
Unlike many similar tools that lack configuration flexibility, Xleak offers various settings that can be customized to enhance user experience. The configuration file is located in different directories depending on the operating system.
- Linux:
~/.config/xleak/config.toml - macOS:
~/Library/Application Support/xleak/config.toml - Windows:
%APPDATA%\xleak\config.toml
Editing this configuration file allows users to modify interface behaviors such as the maximum number of displayed rows, column widths, themes, and keybinding profiles. For instance, you can implement a configuration that sets a new default color scheme and activates a Vim-style keybinding profile.
[ui] max_rows = 50 column_width = 30
[theme] default = “Github Dark”
[keybindings] profile = “vim”
This level of customizability allows Xleak to adapt closely to your personal workflow, offering numerous ways to tweak the settings to your liking.
Navigating Spreadsheets with Xleak
Once Xleak is installed and ready to use, opening a spreadsheet in the terminal is simple and efficient. Keep in mind the significance of using the interactive flag, as it greatly enhances the navigation experience—especially for larger files.
To access a spreadsheet in interactive mode, use the following command:
xleak example.xlsx -i
This command loads your spreadsheet directly in the terminal, enabling scrolling through rows and columns that exceed your screen’s capacity.

The true benefits of Xleak emerge when included in a terminal-centric workflow. For example, users generating spreadsheets from scripts or accessing remote servers without graphical environments can easily view files in place, avoiding the hassle of downloads or extensive setups.

Xleak is also effective for quick data inspections, allowing users to validate values or check column headers without the need for complex features like formulas or charts. However, users should be prepared for the possibility of minor glitches, given the tool’s newness.
The potential for Xleak to overlap seamlessly with other terminal data tools is noteworthy. Familiarity with keybindings can make the transition smoother, and as the tool evolves, it may harmonize even more with existing utilities in your toolkit. Additionally, should CSV support be added, Xleak stands to further consolidate the number of necessary tools.
Exploring the capabilities of the terminal might reveal more than you expect. For instance, accessing a web browser within the terminal can be surprisingly effective. If you’re seeking inspiration on what else to accomplish within your Linux terminal, consider discovering some useful functionalities you may not have previously considered.
Leave a Reply