MAGE(1)
π 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 fromCACHE_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 themagebinary. 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 theGOARCHfor 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 theGOOSfor 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,-hshows 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-dvalue). 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
- ubuntu stonking: mage 1.17.1+ds-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms