Skip to content

feat: Migrate CLI from Kingpin to Cobra for better autocompletion and maintainability #173

@joshichintan

Description

@joshichintan

Rationale

  • Kingpin’s autocompletion support is limited and difficult to extend.
  • Cobra provides robust, built-in support for Bash, Zsh, Fish, and PowerShell completions.
  • Cobra is more actively maintained and widely adopted (used by tools like kubectl, helm, gh, etc.), aligning us with modern CLI standards.

Benefits

  • Greatly improved shell autocompletion (dynamic flags and subcommands)
  • Clearer subcommand structure and help text
  • Easier long-term maintenance and community contribution

Kingpin has served well, but its autocompletion model has become a bottleneck for usability.
This migration modernizes the CLI foundation and should make future enhancements simpler and more reliable.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions