Luma and Flint: CLI tools to install, manage, lint, and format packages

Written by Devex team (wsor and Zenon Seth)
Edited by rubenwardy

We’re announcing two new terminal tools to support developers and server owners. Luma allows you to install, update, and manage Luanti packages and worlds. Flint is a formatter and linter to help developers catch common mistakes and improve the quality of their games and mods.

What is the Developer Experience (devex) team?

You might have missed the formation of a new Luanti devex team a few months ago. No one would blame you, as we didn’t have a big announcement, only a list of tools we wanted to implement.

The Luanti devex team is focused on providing an improved experience for mod/game developers, and for server owners. We have several projects in the works, and this blog post only focuses on two of them: Luma and Flint.

Luma

Luma, a portmanteau of Luanti + Manager, provides both a Terminal User Interface (TUI) and a Command-Line Interface (CLI) for installing, updating, and managing Luanti mods, modpacks, games, and texture packs through ContentDB.

It comes as a single binary and is meant for server hosts or devs who want to automate managing Luanti content entirely from the command line.

Luma is available to download for Linux, Windows, and macOS here.
Full documentation is also available online here.

The TUI running with a manually specified Luanti directory
The TUI running with a manually specified Luanti directory

Key features

Luma is still being actively developed to add more features, including toggling mods per world, smart world settings editing, Git-based updates, and more.
For full information, see Luma’s roadmap.

Flint

Flint is a simple play on the two core constructs of this tool: Format + lint. Unfortunately, it is unable to assist in setting your Luanti packages on fire; it leaves that up to the user :P.

Flint provides a collection of checkers that allow you to catch common mistakes, format code, and generally improve the quality of your games and mods. It can help you migrate your mods and games through Luanti updates, automatically replacing deprecated APIs using your package’s min_minetest_version.

Many developers already use Luacheck; Flint is intended to complement and not replace it.

For complete information on Flint’s features and getting started, see the documentation online.

Key features

User Showcase

The mt-mods organization has been one of the first to put Flint to work across its repositories. Here’s what that looked like:

Type Files Before → after Saved
OGG audio 33 1.49 MB → 1.12 MB (−24.9%) ≈361 KB
PNG textures 289 449 KB → 345 KB (−23.2%) ≈101 KB

Getting started

Grab a build from the latest commit, and trial whichever features (or all of them) tickle your fancy to improve your package. Add it to CI to make sure your package is always in its best shape.

What’s next

There’s more coming from the devex team. Take a peek at Luanti Workbench, a set of in-browser tools for creating content. You can already grow L-system trees and lay out formspecs there, and more tools are on the way. Workbench is built to connect with the rest of the Luanti ecosystem, starting with the docs: every example on the L-system trees page opens straight in the editor.

Community feedback decides what we build next. If something is missing, broken, or annoying in Luma, Flint, or Workbench, let us know in #luanti-devex (Discord, Matrix, IRC).