Back to browse
GitHub Repository

Opinionated declarative CLI args, ENV vars and config files

47 starsGo

Boa – Declarative Go CLIs from struct tags, built on Cobra

by GiGurra·Apr 2, 2026·2 points·0 comments

AI Analysis

MidCozy

Yet another declarative CLI lib when Kong and urfave/cli already exist.

Strengths
  • Cobra interop means you can incrementally adopt without rewriting existing commands.
  • Struct tags generate flags, env vars, validation, and help text from one definition.
Weaknesses
  • Crowded category with Kong, urfave/cli, and Cobra itself already solving this.
  • 12 stars suggests limited adoption; unclear what makes this worth switching.
Target Audience

Go developers building CLI tools

Similar To

kong · urfave/cli · cobra

Similar Projects

Env-gen – Rust CLI tool to generate .env files

Interactive prompts plus automatic discovery of common template filenames make onboarding and local env scaffolding annoyingly easy. It's a pragmatic little tool you reach for when you want a quick .env created or synced, but it stops short of integrations most teams care about (no secret encryption, policy validation, or vault/CI hooks mentioned).

Niche GemShip It
Brysonbw
103mo ago
Developer Tools●●Solid

Env-rx – Catch missing .env variables before they break your CI

Interactive autofix plus a --ci flag is the practical combo here: run locally to prompt-and-append missing keys, or fail your CI when examples diverge. It’s not reinventing the wheel, but the single-file, zero-config approach and explicit CI mode make it a useful small tool to stop one of those 'works on my machine' headaches—just watch out for secrets and how you auto-append placeholder values.

Solve My ProblemShip ItNiche Gem
xserhio
343mo ago