ZIG(1)
π NAME π
ok so this is the manual page for zig β it's the Zig compiler AND the build tool, like a two-for-one slay β¨ (and yeah bestie, it's page ZIG(1) from the User Commands section, iykyk π)
πΈ SYNOPSIS πΈ
zig [command] [options]
likeβ¦ you give it a command, you optionally give it options, and it does the thing π¦
β¨ DESCRIPTION β¨
okay so here's the whole roster of commands. every single one. no skipping, we don't do that here π
π Commands
buildβ Build project frombuild.zigπ₯fetchβ Copy a package into global cache and print its hashinitβ Initialize a Zig package in the current directorybuild-exeβ Create executable from source or object filesbuild-libβ Create library from source or object filesbuild-objβ Create object from source or object filestestβ Perform unit testingtest-objβ Create object for unit testingrunβ Create executable and run immediately (no thoughts, just vibes πβοΈ)ast-checkβ Look for simple compile errors in any set of filesfmtβ Reformat Zig source into canonical form (glow-up for your code β¨)reduceβ Minimize a bug reporttranslate-cβ Convert C code to Zig codearβ Use Zig as a drop-in archiverccβ Use Zig as a drop-in C compilerc++β Use Zig as a drop-in C++ compilerdlltoolβ Use Zig as a drop-indlltool.exelibβ Use Zig as a drop-inlib.exeranlibβ Use Zig as a drop-inranlibobjcopyβ Use Zig as a drop-inobjcopyrcβ Use Zig as a drop-inrc.exeenvβ Print lib path, std path, cache directory, and versionhelpβ Print this help and exitstdβ View standard library documentation in a browser πlibcβ Display native libc paths file or validate onetargetsβ List available compilation targetsversionβ Print version number and exitzenβ Print Zen of Zig and exit π§βοΈ (main character energy fr)
π«Ά General Options
-h,--helpβ Print command-specific usage
and that's the whole thing bestie, you're so welcome π this was the zig page for version zig 0.15.2, dated November 2025 β go forth and compile something iconic ππβ
π¦ where this page comes from
- ubuntu resolute: zig0.15 0.15.2~us1-0ubuntu1 Β· MIT
- ubuntu stonking: zig0.15 0.15.2~us1-0ubuntu1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms