table of contents
MAGE(1) | User Commands | MAGE(1) |
NAME¶
mage - make/rake-like build tool using Go
DESCRIPTION¶
mage [options] [target]
Mage is a make-like command runner. See https://magefile.org for full docs.
Commands:¶
- -clean
- clean out old generated binaries from CACHE_DIR
-compile <string>
- output a static binary to the given path
OPTIONS¶
-d <string>
- directory to read magefiles from (default "." or "magefiles" if exists)
- -debug
- turn on debug messages
- -f
- force recreation of compiled magefile
- -goarch
- sets the GOARCH for the binary created by -compile (default: current arch)
- -gocmd <string>
- use the given go binary to compile the output (default: "go")
- -goos
- sets the GOOS for the binary created by -compile (default: current OS)
- -ldflags
- sets the ldflags for the binary created by -compile (default: "")
- -h
- show description of a target
- -keep
- keep intermediate mage files around after running
-t <string>
- timeout in duration parsable format (e.g. 5m30s)
- -v
- show verbose output when running mage targets
-w <string>
- working directory where magefiles will run (default -d value)
SEE ALSO¶
February 2025 | mage 1.15.0+ds-2 |