{"repo":"mmkal/trpc-cli","free":true,"listed":false,"github":"https://github.com/mmkal/trpc-cli","clone":"git clone https://github.com/mmkal/trpc-cli.git","description":"Turn a tRPC router into a type-safe, fully-functional, documented CLI","language":"TypeScript","stars":371,"topics":["cli","typescript","tprc"],"license":null,"category":"cli-tools","readme_excerpt":"trpc-cli 🔥 Build production-quality command-line tools in minutes, not days 🔥 trpc-cli transforms a tRPC (or oRPC) router into a professional-grade CLI with zero boilerplate. Get end-to-end type safety, input validation, auto-generated help documentation, and command completion for free. - ✅ Get all of trpc's type safety and DX building a CLI - ✅ Automatic positional arguments and options via zod input types (or arktype, or valibot) - ✅ Easily add subcommands via nested trpc routers - ✅ Rich helptext out of the box - ✅ Exactly one dependency: commander - ✅ Automatic input prompts - ✅ Automatic shell autocompletions - ✅ Use advanced tRPC features like context and middleware in your CLI - ✅ Build multimodal applications - use the same router for a CLI and an HTTP server, and more - ✅ oRPC support - ✅ Standalone mode (experimental) - build CLIs without @trpc/server or @orpc/server - ✅ No configuration required. Run a plain module of exported functions with npx trpc-cli ./commands.ts --- Contents - Contents - Motivation - Installation - Quick Start - Basic Usage - Core Concepts - Input Types & CLI Arguments - Command Configuration - Validators - zod - arktype - valibot - effect - typebox - CLI from a plain TypeScript module — Experimental - Examples - Calculator Example - Migrator Example - Other Features - tRPC v10 vs v11 - oRPC - Standalone Mode (No tRPC/oRPC Required) — Experimental - Output and Lifecycle - How the CLI name is resolved - Testing your CLI - CLI Context - Prog","default_branch":null,"files":null,"tree":[],"storefront":"/r/mmkal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mmkal/trpc-cli/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}