Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By clibuilderv12.4.1MITIn 1 marketplace
Designs agent-friendly CLI output and builds command-line tools with the clibuilder 12 library, with typed options and in-process tests. Needs Node.js 20.19 or newer, and v12 prints command return values to stdout by default.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
cli, command-line, axi, agent-friendly, clibuilder, cli-builder, node-cli, toon-output ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A highly customizable command line application builder.
npm install clibuilder
pnpm add clibuilder
yarn add clibuilder
clibuilder needs Node.js 20.19 or newer.
import { cli, t } from 'clibuilder'
cli({ name: 'greet', version: '1.0.0' })
.default({
description: 'say hello',
arguments: [{ name: 'name', description: 'who to greet' }],
options: {
loud: { description: 'shout it', alias: ['l'] },
times: { description: 'how many times', type: t.int({ min: 1 }), default: 1 }
},
run(args) {
// args.name: string, args.loud: boolean | undefined, args.times: number
const line = `hello, ${args.name}`
return Array(args.times).fill(args.loud ? line.toUpperCase() : line).join('\n')
}
})
.parse(process.argv)
.catch(e => process.exit(e?.code || 1))
$ greet world --times 2 -l
HELLO, WORLD
HELLO, WORLD
Walk through it in Your First CLI.
t descriptors, inferred into run(args), and checked before run() is called.run() returns is the answer, in toon, json or text.clibuilder/config and validated per command with any Standard Schema.@clibuilder/plugins.CliError, and ranked usage errors.testCommand() runs a command in-process.Agent-facing output is the default: a value returned from run() is printed on stdout, and every ui.* message is a diagnostic on stderr.
cli({ output: 'console' }) keeps the v11 output. t replaces zod.
See Upgrading to 12.
The documentation has the guides, and the API reference covers every export.
7-day copy clicks
npx claudepluginhub clibuilder/clibuilder --plugin clibuilderBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground