Skip to content

clif

Tiny, zero-dependency CLI framework with beautiful output and a composable API.

Zero dependencies

Replaces commander, chalk, inquirer, ora, and cli-table3 in a single package under 15 KB gzipped.

Composable

Every function is standalone, pure where possible, and returns strings — trivial to compose and test.

Tree-shakeable

Import only what you need via clif or clif/prompts. Full TypeScript with strict types throughout.

Terminal-aware

Honors NO_COLOR, FORCE_COLOR, pipe detection, and terminal width out of the box.