Skip to content
Flintworks

Project8 November 2026

Clinguini

View on GitHub

Clinguini is a very small library for building command line tools. It handles commands, params, flags, and generated help. It is written in TypeScript, and it has no runtime dependencies.

The size is measured. The 1.0.0 runtime is 1,950 bytes minified and gzipped, which is 1.90 KiB, and the README lists the commands to reproduce that number.

npm install clinguini
import { clinguini } from 'clinguini';

await clinguini({
	name: 'greet',
	description: 'Say hello from the terminal',
	params: [{ name: 'name' }],
	flags: [{ name: 'loud', shortForm: 'l', type: 'boolean' }],
	utils: { help: true },
	handler: ({ params, flags }) => {
		const message = `Hello, ${params.name}!`;
		console.log(flags.loud ? message.toUpperCase() : message);
	}
});
node cli.mjs Ada --loud
# HELLO, ADA!

It needs Node.js 22 or later and ships as ES modules only. The API guide covers nested commands, defaults, flag aliases, and async handlers. Agentests builds its command line on Clinguini.

Read the code on GitHub.