ZIG(1)
π NAME π
zig β the Zig compiler AND the build tool, one iconic little binary doing the absolute most π«Ά
β¨ SYNOPSIS β¨
zig [command] [options]
πΈ DESCRIPTION πΈ
okay so bestie, zig is literally both the compiler and the build system in one. You pick a command, you throw some options at it, and you go. That's the whole vibe. Here's the full menu of what you can ask it to do π
π Commands π
buildβ builds your project frombuild.zigπ¦fetchβ copies a package into the global cache and prints out its hash π₯initβ sets up a brand-new Zig package right here in the current directory π±build-exeβ makes an executable out of source files or object files ποΈbuild-libβ makes a library out of source files or object files πbuild-objβ makes an object file out of source files or object files π§©testβ runs unit tests, because we test in this house πtest-objβ makes an object file for unit testing π¬runβ makes an executable and then immediately runs it, no waiting, main character energy β¨ast-checkβ sniffs around for simple compile errors in any set of files π΅οΈfmtβ reformats Zig source into its canonical form, and yes it's giving gorgeous πreduceβ minimizes a bug report so you're left with the tiniest little repro πtranslate-cβ converts C code into Zig code, the crossover episode we love to see πarβ combines object files into a static archive ποΈccβ uses Zig as a drop-in C compiler, effortless πc++β uses Zig as a drop-in C++ compiler, yes she does both πdlltoolβ uses Zig as a drop-indlltool.exeπͺlibβ uses Zig as a drop-inlib.exeπ§±objcopyβ manipulates executables and relocatables π οΈobjdumpβ prints information about executables and relocatables πranlibβ uses Zig as a drop-inranlibπrcβ uses Zig as a drop-inrc.exeπenvβ prints the lib path, std path, cache directory, and version πhelpβ prints this help and exits, short and sweet πstdβ opens the standard library documentation in your browser πlibcβ displays the native libc paths file, or validates one π§targetsβ lists every available compilation target π―versionβ prints the version number and exits π’zenβ prints the Zen of Zig and exits, it's a whole mood π§ββοΈ
β¨ General Options β¨
-h,--helpβ prints the usage for whatever command you're on, super handy when your brain is buffering π
and that's the whole page bestie!! no cap, you're basically a Zig girlie now π π¦
this gorgeous thing is zig 0.16.0, dated May 2026, hanging out in the User Commands section of the manual β love that for her ππΈ
π¦ where this page comes from
- ubuntu stonking: zig0.16 0.16.0~us1-0ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms