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)