DEV Community

Bakemono
Bakemono

Posted on

Announcing gofsen-cli โ€” scaffold Go APIs in seconds

๐Ÿš€ Last week I launched Gofsen โ€” now comes gofsen-cli!

Last week, I launched Gofsen, a clean and minimal web API framework for Go.

As promised, today Iโ€™m introducing gofsen-cli, a command-line tool that helps you go from idea ๐Ÿ’ก to a running API in under a minute.


Why the CLI?

Creating a new API project often requires a lot of boilerplate: main.go, handlers, middleware, environment configsโ€ฆ

With gofsen-cli, all of this is automated and ready to run.


Features

  • Generate a new project with all necessary files
  • Scaffold routes, middleware, and handlers in seconds
  • Sensible defaults: logging, recovery, CORS
  • Works cross-platform (Homebrew, APT, YUM, Go)

Quick Install

macOS / Linux (Homebrew)

brew tap Bakemono-san/homebrew-tap
brew install gofsen-cli
Enter fullscreen mode Exit fullscreen mode

Ubuntu / Debian (APT)

curl -1sLf 'https://dl.cloudsmith.io/public/bakemono-san/gofsen/setup.deb.sh' | sudo -E bash
sudo apt update
sudo apt install gofsen-cli
Enter fullscreen mode Exit fullscreen mode

RHEL / CentOS / Alma / Rocky (DNF / YUM)

curl -1sLf 'https://dl.cloudsmith.io/public/bakemono-san/gofsen/setup.rpm.sh' | sudo -E bash
sudo dnf install gofsen-cli
# or: sudo yum install gofsen-cli
Enter fullscreen mode Exit fullscreen mode

Go (any OS)

go install github.com/Bakemono-san/gofsen/cmd/gofsen-cli@latest
Enter fullscreen mode Exit fullscreen mode

ย Quickstart

gofsen-cli new                  # interactive project setup
gofsen-cli gen route users      # CRUD routes
gofsen-cli gen middleware auth  # middleware
gofsen-cli gen handler status   # simple handler
gofsen-cli --version
Enter fullscreen mode Exit fullscreen mode

Built with pride in Senegal ๐Ÿ‡ธ๐Ÿ‡ณ, for developers worldwide ๐ŸŒ.
Mission: make Go API development fast, simple, and maintainable.

๐Ÿ”— GitHub & Docs: https://github.com/Bakemono-san/gofsen
โฌ‡๏ธ Binaries / Releases: https://github.com/Bakemono-san/gofsen/releases

๐Ÿ’ฌ Your turn: What should gofsen-cli scaffold next? Comment below!

Top comments (0)