Golang - Writing CLI App in Golang with Cobra

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • cobra

    A Commander for modern Go CLI interactions

  • Golang has good amount libraries in-build and maintained by community. One of them is Cobra, which is pretty good to write any cli apps. Today will try to see how we can use the library and what all functionality it provides.

  • mitchellh/cli

    A Go library for implementing command-line interfaces. (by mitchellh)

  • There are alternatives available for Cobra as well i.e. mitchellh/cli, go-flags, urfave/cli etc.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • go-flags

    go command line option parser

  • There are alternatives available for Cobra as well i.e. mitchellh/cli, go-flags, urfave/cli etc.

  • urfave/cli

    A simple, fast, and fun package for building command line apps in Go (by urfave)

  • There are alternatives available for Cobra as well i.e. mitchellh/cli, go-flags, urfave/cli etc.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts