I built my first CLI tool

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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

    A CLI utility to sort Terraform variables and outputs

  • Link: https://github.com/AlexNabokikh/tfsort

  • hcl

    HCL is the HashiCorp configuration language.

  • Cool! So this should work for any hcl file not just terraform config

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • climate

    "CLI Mate" autogenerates CLIs from structs / functions (nested subcommands, global / local flags, help generation, typo suggestions, shell completion etc.) (by avamsi)

  • I see you're using Cobra -- https://github.com/avamsi/clifr offers most of the goodness of Cobra (Clifr uses Cobra under the hood) with a much simpler "API" IMO (you just write a struct and Clifr handles the rest). Feel free to give it a try and file issues if there's anything you see missing from Cobra etc.

  • go-boilerplate

    An easy to use, extensible boilerplate for Go applications (by eldad87)

  • I am not entirely sure that I understand your question. Apart from basic knowledge of golang syntax and programming in general, there are no prerequisites. If you want a quick start, you may look at the https://github.com/eldad87/go-boilerplate. For the CLI tool, consider using https://github.com/spf13/cobra. It can generate project structure. I hope that helps. Cheers

  • cobra

    A Commander for modern Go CLI interactions

  • I am not entirely sure that I understand your question. Apart from basic knowledge of golang syntax and programming in general, there are no prerequisites. If you want a quick start, you may look at the https://github.com/eldad87/go-boilerplate. For the CLI tool, consider using https://github.com/spf13/cobra. It can generate project structure. I hope that helps. Cheers

  • 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
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