← All tools

bunli

Popularity 65 Updated Development & Build

The Bunli CLI toolchain for developing, building, and distributing CLIs

npmauto-collected

Installation

npm
npm install -g bunli

Install with npm.

Bunli

The Complete CLI Development Ecosystem for Bun

Bunli is a minimal, type-safe CLI framework designed specifically for Bun. It leverages Bun's unique features like the Bun Shell, fast startup times, and native TypeScript support to create efficient command-line tools that compile to standalone binaries.

Packages

Core

  • @bunli/core - Core framework with type-safe command definitions
  • @bunli/tui - OpenTUI-backed renderer, components, and prompt runtime
  • @bunli/utils - Shared utilities (prompts, spinners, colors)
  • @bunli/test - Testing utilities for CLI applications
  • @bunli/generator - Generate TypeScript definitions from commands

CLI Tools

  • bunli - CLI toolchain for development and building
  • create-bunli - Scaffolding tool for new CLI projects

Plugins

  • @bunli/plugin-ai-detect - Detect AI coding assistants
  • @bunli/plugin-completions - Generate shell completions for your CLI
  • @bunli/plugin-config - Configuration file loading and merging
  • @bunli/plugin-mcp - MCP integration for agentic workflows

Getting Started

# Install Bunli CLI globally
bun add -g bunli

# Create a new CLI project
bunx create-bunli my-cli

# Start development
cd my-cli
bunli dev

Development

This is a monorepo managed with Bun workspaces.

# Install dependencies
bun install

# Build all packages
bun run build

# Run tests
bun test

# Start development
bun run dev

License

MIT