用 TS 写命令行工具,比你想的简单多了
Everything ships a CLI these days — especially now that AI tooling lives in the terminal. So how do you build a good one? This episode takes the contrarian route: skip C/Go/Rust and build a distributable CLI in TypeScript with Bun. Scaffold with bun init, handle command parsing with citty, and render the UI with Ink (yes — React for your TUI). Then bun build --compile --target spits out a single-file binary. It's 57MB because the runtime ships with it… but hey, it works. The painful part — signing & notarization — is where goreleaser saves you. Since 2.6 it treats bun as a first-class citizen, handling checksums, changelogs, packaging, notarization, and Homebrew distribution for you. Heads up: the Apple Developer cert is $99/year and there's no way around it for Mac. Next episode: how to automate this entire build pipeline. What's the most interesting CLI you've built or used? Drop it in the comments 👇 ⏱️ Chapters 00:00 Why CLIs are having a moment 01:02 CLI pros: precise, fast, cross-platform 02:30 The cons & why CLIs are hard to build 03:09 Picking a language (and why TypeScript?) 04:00 Scaffolding with Bun + citty + Ink 05:54 Compiling to a binary: Node SEA vs Bun 07:54 Signing & notarization explained 09:46 goreleaser does it all 11:00 Homebrew distribution + the $99 catch 11:40 Next episode preview Tags: CLI command line tools TypeScript Bun Ink React goreleaser Node.js developer tools Claude Code web development AsyncTalk

After 10 Years of Ant Design: The Next Decade of UI Libraries

SOCCER CHALLENGE WITH SIDNEY & WILLY!⚽️ Gavi is pulling magic again..👀🪄

Claude Code 从 0 到 1 全攻略 —— MCP / SubAgent / Agent Skill / Hook / 图片 / 上下文处理/ 后台任务 / 权限 ......

Markdown Isn't Dead — But HTML Wants a Seat at the Table
![Art Wallpaper • Van Gogh • no sound • [4k]](https://i.ytimg.com/vi/GlkxpF6DkRE/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLB3LiNfgLxULdjy0g3E3_mnqkf8Ag)
Art Wallpaper • Van Gogh • no sound • [4k]

We Got the Police Backend: Inside the Machine Monitoring 1.4 Billion People

Tips for C Programming

SpaceX为什么现在上市?马斯克说出了AI时代最大瓶颈

I Escaped the Apple Ecosystem - It Backfired
![PINK & ORANGE GRADIENT IN HD [3 HOURS]](https://i.ytimg.com/vi/6ih8zppfQSQ/hqdefault.jpg?sqp=-oaymwE9CNACELwBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Af4JgALQBYoCDAgAEAEYfyAsKBMwDw==&rs=AOn4CLDvw6mQM98bfl572zfE7r4GdUG8dg)
PINK & ORANGE GRADIENT IN HD [3 HOURS]

fopen is Magic! - Find Out What You've Been Missing All These Years!

Microsoft's Greed is Finally Backfiring

TV ART SLIDESHOW | Abstract Art for your TV | Jené Stephaniuk | 1hour of 4K HD Paintings

I'm leaving Germany | Brutally Honest Review

Ghostty - 你的 Terminal 还没换新吗?

Docker Tutorial for Beginners

Vergesst Rechtsradikale: Die wahre Gefahr sind Islamisten, so Prof. Susanne Schröter

How to use GitHub Copilot (the complete beginner's guide)

Der Nowak-Mord und die letzte Chance für Europa – Bolz & Mannhart

