We built a CLI generator for agents and humans
Blog post from Fern
Fern's CLI generator enables the creation of a fully functional command-line interface (CLI) using the same API specifications as its other SDK generators, supporting OpenAPI and soon GraphQL, AsyncAPI, and gRPC. Designed with Rust for efficiency, it provides a single, statically linked binary that can be installed across platforms such as macOS, Linux, and Windows. This tool is beneficial for both humans and agents, offering features like machine-readable schemas and validation against common agent errors, and it can operate as both a CLI and a server for shell-less clients. The generator simplifies the complex task of building a CLI by automatically syncing with API changes, eliminating the need for manual code generation, and distributing through popular package managers like npm and Homebrew.