awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

10 个仓库

Awesome GitHub RepositoriesGo CLI Frameworks

Popular packages for building robust command-line applications in Go.

Explore 10 awesome GitHub repositories matching part of an awesome list · Go CLI Frameworks. Refine with filters or upvote what's useful.

Awesome Go CLI Frameworks GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • spf13/cobraspf13 的头像

    spf13/cobra

    44,107在 GitHub 上查看↗

    Cobra is a development framework for building command-line applications in Go. It organizes application logic into a hierarchical tree structure where each node represents a command, complete with its own flags and execution logic. This structure allows developers to build complex, nested command interfaces that mirror business domains while maintaining a clean separation between command orchestration and underlying business logic. The framework distinguishes itself through its declarative approach to metadata and configuration. It automatically derives help documentation, usage instructions,

    Standard library for building modern CLI applications.

    Goclicli-appcobra
    在 GitHub 上查看↗44,107
  • spf13/viperspf13 的头像

    spf13/viper

    30,306在 GitHub 上查看↗

    Viper is a configuration management library designed to centralize application settings from diverse sources into a unified, type-safe registry. It aggregates data from local files, environment variables, command-line flags, and remote key-value stores, providing a single source of truth for application state. By utilizing a hierarchical key-value registry, the system resolves configuration values based on a prioritized stack of providers, ranging from default values to runtime overrides. The library distinguishes itself through its pluggable provider abstraction and dynamic update capabiliti

    Configuration solution for command-line applications.

    Go
    在 GitHub 上查看↗30,306
  • urfave/cliurfave 的头像

    urfave/cli

    24,133在 GitHub 上查看↗

    This is a framework for building structured terminal applications in Go. It provides the core components necessary to define a command-line interface, including a system for managing commands, sub-commands, and their associated flags. The library distinguishes itself through an automated help generator that produces formatted usage instructions and manual pages, and a shell completion generator that creates tab-completion scripts for Bash, Zsh, Fish, and PowerShell. It also features a command lifecycle manager to handle pre- and post-execution logic and process exit codes. The toolkit covers

    Package for building fast and fun command-line apps.

    Goclicommand-linego
    在 GitHub 上查看↗24,133
  • alecthomas/kongalecthomas 的头像

    alecthomas/kong

    2,976在 GitHub 上查看↗

    Kong is a declarative command line interface framework and parser for Go. It maps flags and positional arguments directly into typed Go structures using struct tags, allowing developers to define terminal interfaces through data models rather than manual parsing logic. The project functions as a configuration mapper that populates Go structures from a combination of command-line arguments, environment variables, and JSON files. It distinguishes itself by providing a dependency injection container to pass external services into command handlers and a plugin architecture for dynamic command reg

    Library for complex command-line structures with minimal effort.

    Gocommand-linecommandsflags
    在 GitHub 上查看↗2,976
  • alexflint/go-argalexflint 的头像

    alexflint/go-arg

    2,229在 GitHub 上查看↗

    Struct-based argument parsing library.

    Goargument-parsinggolang
    在 GitHub 上查看↗2,229
  • docopt/docopt.godocopt 的头像

    docopt/docopt.go

    1,444在 GitHub 上查看↗

    docopt-go

    Argument parser based on help message definitions.

    Go
    在 GitHub 上查看↗1,444
  • jawher/mow.clijawher 的头像

    jawher/mow.cli

    884在 GitHub 上查看↗

    A versatile library for building CLI applications in Go

    Versatile library for building CLI applications.

    Goclicommand-linego
    在 GitHub 上查看↗884
  • akamensky/argparseakamensky 的头像

    akamensky/argparse

    640在 GitHub 上查看↗

    Argparse for golang. Just because flag sucks

    Go implementation of Python-style argument parsing.

    Goargparseargument-parserawesome-go
    在 GitHub 上查看↗640
  • avamsi/climateavamsi 的头像

    avamsi/climate

    164在 GitHub 上查看↗

    Climate "CLI Mate" aims to make creating CLIs in Go easy (and fun!), similar to python-fire. It's also built on top of Cobra and so comes with "batteries included" (help, shell completion etc.).

    Autogenerates CLIs from structs and functions.

    Go
    在 GitHub 上查看↗164
  • ukautz/clifukautz 的头像

    ukautz/clif

    128在 GitHub 上查看↗

    CLIF - Command line interface framework

    Framework for rapid command-line application development.

    Go
    在 GitHub 上查看↗128
  1. Home
  2. Part of an Awesome List
  3. Developer Tools
  4. Go CLI Frameworks