GCli is a lightweight, feature-rich command-line application framework and tool library written in Go. It provides everything you need to build interactive CLI applications — from multi-command routing and flag parsing, to color output, progress bars, and auto-completion — all with a clean, idiomatic Go API. Whether you're building a simple single-command tool or a complex multi-level CLI with subcommands, GCli offers a structured path from zero to production.

What GCli Solves
Building CLI applications from scratch in Go typically means grappling with the standard library's flag package for options, manually routing commands, and reinventing help text rendering. GCli eliminates this friction by providing a unified application model where commands are first-class citizens, flag parsing is declarative, and lifecycle events are hookable. The library's core value proposition is simple: declare your intent, not your plumbing.
At the heart of GCli are two complementary modes of operation. The App mode orchestrates multiple commands under a single binary — think git, docker, or kubectl. The Standalone Command mode lets a single Command run independently without an wrapper, perfect for focused tools that don't need subcommand routing. Both modes share the same flag-binding API, middleware chain, and event system, ensuring a consistent developer experience regardless of scale.