spf13

    spf13/cobra

    A Commander for modern Go CLI interactions

    44.8K stars
    4.5K forks
    383 GitHub watchers
    Updated Nov 7, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    No releases in the last 90 days; the most recent was 339 days ago, with 309 contributors on GitHub.

    Peaked at #73 in the weekly ranking the week of Apr 12, its best in the past year.

    Use Cases & Benefits

    • Provides a Go library to create modern, powerful CLI applications with subcommands and POSIX-compliant flags.
    • Enables rapid CLI development with automatic help, suggestions, shell autocompletion, and man page generation.
    • Use for building complex CLI tools with nested commands and flexible flag management in Go projects.
    • Use for integrating seamless command-line interfaces in Go applications requiring intelligent user guidance.
    • Use for generating scaffolding and command files quickly using the cobra-cli tool to bootstrap new CLI apps.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Cobra is a library for creating powerful modern CLI applications.

    Cobra is used in many Go projects such as Kubernetes, Hugo, and GitHub CLI to name a few. This list contains a more extensive list of projects using Cobra.

    Cobra is a library providing a simple interface to create powerful modern CLI interfaces similar to git & go tools.

    Excerpt from the spf13/cobra README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Aug 14: +11Aug 15: -33Aug 16: +2Sep 28: +2Oct 8: +6Nov 8: +10

    +387 stars over 87 days across 14 snapshot days; best day +11 on Aug 14.

    Forks

    4.5K+1.3K

    Open issues

    493+63

    Compared with peers in CLI

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    spf13/cobra compared with CLI repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    morluto/rea450.0K+22.9K7516 days ago
    mattpocock/skills320.9K+9.5K7512 days ago
    vercel-labs/agent-desktop21.4K+8.7K755 days ago
    stablyai/orca121.4K+6.7K75today
    vercel-labs/agent-browser49.2K+3.8K751 day ago
    spf13/cobra44.8K—41339 days ago
    Category median121.4K+8.7K75—

    Also by spf13

    Other repositories from this maintainer that GStars tracks

    Discover Repositories

    Search across tracked repositories by name or description