MAGE(1)

πŸ“¦
version 1.17.1 Β· 4 versions
, in ubuntu stonking

πŸ’– NAME πŸ’–

mage β€” a make/rake-like build tool using Go, and honestly? she ate.


🌸 DESCRIPTION 🌸

Okay so bestie, picture make but it's written in Go and it's not gonna make you cry. That's mage. It's a make-like command runner. Fr fr.

The vibe:

mage [options] [target]

Full docs live at https://magefile.org if you want the whole lore. πŸ“–βœ¨

πŸŽ€ Commands: πŸŽ€

  • -clean β€” clean out old generated binaries from CACHE_DIR. Marie Kondo but for your build artifacts πŸ’…
  • -compile <string> β€” output a static binary to the given path. One binary, no drama, iconic.
  • -h β€” show this help. Hi, hello, here's the tea 🫢
  • -init β€” create a starting template if no mage files exist. Your starter pack, no cap.
  • -l β€” list mage targets in this directory. The menu, the lineup, the roster πŸ‘‘
  • -version β€” show version info for the mage binary. Who is she? Find out.

✨ OPTIONS ✨

  • -d <string> β€” directory to read magefiles from (default "." or "magefiles" if it exists). Tell her where to look.
  • -debug β€” turn on debug messages. Chaos mode: enabled πŸ›
  • -f β€” force recreation of compiled magefile. No cache, all fresh, we're rebuilding from scratch bestie.
  • -goarch β€” sets the GOARCH for the binary created by -compile (default: current arch). Architecture slay.
  • -gocmd <string> β€” use the given go binary to compile the output (default: "go"). Bring your own go ✨
  • -goos β€” sets the GOOS for the binary created by -compile (default: current OS). Operating system: your choice.
  • -ldflags β€” sets the ldflags for the binary created by -compile (default: ""). Linker flags, very demure, very mindful.
  • -multiline β€” retain line returns in help docs (default: convert to spaces). Keep the formatting, don't flatten her 😭
  • -h β€” show description of a target. (Yes, -h shows up twice in this page. Context matters, iykyk πŸ’€)
  • -keep β€” keep intermediate mage files around after running. Hoarder mode: activated. They can stay, they're part of the family now πŸ₯Ί
  • -t <string> β€” timeout in duration parsable format (e.g. 5m30s). Set a limit, she has places to be ⏰
  • -v β€” show verbose output when running mage targets. Give me every single detail, I want the whole story πŸ—£οΈ
  • -w <string> β€” working directory where magefiles will run (default -d value). Where the magic actually goes down.

πŸ¦‹ SEE ALSO πŸ¦‹

  • make(1) β€” the OG. Respect the elders. 🫑

That's the whole page, bestie! This one's mage 1.17.1+ds-1, dated April 2026. Go build something iconic. Periodt. πŸ’œβœ¨

πŸ“¦ where this page comes from