Boa: Compress Files from Your Terminal

By Lounes Hareb12 views
  • Compression
  • Command Line
Boa: Compress Files from Your Terminal

There is a particular kind of terminal amnesia: you know exactly what you want to do, but the flags have quietly left the building. Compress a folder, check what is inside an archive, extract it somewhere sensible. Nothing exotic. Yet here you are, opening the help page again.

Boa caught my attention because it puts those jobs behind a proper terminal menu without taking away the commands. It is a free, MIT-licensed compression toolkit for Windows, macOS and Linux. This discovery is based on the project's documentation and official demo, rather than a hands-on test.

A menu instead of a memory test

Launch bo and Boa opens an interactive dashboard. Compress, Extract, Browse Archive and Learn are right there, with file navigation inside the terminal. You can move through folders and choose the target rather than copying a path and hoping the spaces behave.

That is the appeal: staying in the command line without treating every small task like an entrance exam. The menu is built with Bubble Tea, while direct commands remain available when you already know the job. bo compress ./my-folder packages a folder; bo list archive.zip inspects the contents; bo extract archive.zip unpacks it.

The listing shows file sizes and compression ratios without extracting everything first. For an archive with an unhelpful name, that is a much nicer first move than emptying it across your desktop and investigating the debris.

Compression with a choice of trade-offs

Boa supports DEFLATE, Zstandard and Store. Store packages files without compressing them, while the other methods give you different compression choices. The default is DEFLATE at level 6, so you can start with an ordinary command and leave the tuning alone.

If you do want to tune it, bo bench compares compression levels and reports time, output size and throughput. The interesting question is whether waiting longer buys enough extra space to matter. Boa puts those figures next to each other instead of asking you to worship the highest setting.

There is also a dry-run option for previewing the files to include and estimated size, plus exclusion patterns for things such as node_modules. That makes a project folder a more convincing use case than a mystery promise to shrink absolutely everything.

The important distinction: packing is not optimizing

Boa also has a media wizard for images, audio and video. Here, read the choices. Creating a lossless archive and reducing the quality of a media file are different operations, even if both produce a smaller result.

According to the project, non-media and unknown files remain lossless, while lossy media processing requires explicit consent. The wizard exposes quality settings and estimated savings; Boa also records lossy processing in archive comments so its listing can flag it later. The documentation says the original source files are left unchanged.

For a folder you want to preserve exactly, stick with lossless settings. For copies meant for sharing, media optimization may be useful. Keep the originals either way. A quality slider is a choice about what to throw away, not a free lunch with better typography.

A useful little classroom

The Learn section is a surprisingly good fit. bo learn explains compression methods and their trade-offs inside the tool. Contextual help in the media wizard can also explain the active technique, which is precisely when that explanation becomes useful.

The project documents extraction safeguards against paths that escape the destination folder, including traversal and symlink checks. Those are welcome design details, not a reason to treat an unknown archive as trustworthy.

My verdict

Boa looks worth exploring if you already spend time in a terminal and want compression, inspection and comparisons in one place. Native builds are offered for Windows, macOS and Linux, including Intel and Apple Silicon Macs. The official repository has installation instructions and release downloads.

If all you need is an occasional right-click ZIP, you may not need another tool. But if your usual workflow involves a terminal, a folder full of files and a quick argument with command-line help, Boa has a sensible pitch: fewer remembered flags, clearer choices, and no subscription attached.

https://github.com/ZyadWKhedr/Boa

Full software listing: Boa

Share this article