ZIG(1)

πŸ“¦
version 0.16.0 Β· 5 versions
, in fedora 43, fedora 44

✨ ZIG πŸ’…

okay bestie, so zig is the manual page for zig 0.16.0 β€” it's the whole compiler + toolchain in one gorgeous little binary and it does SO much, like genuinely the main character of build systems 🫢


🌸 SYNOPSIS 🌸

zig [command] [options]

that's it. that's the whole vibe. you give it a command and some options and it goes ✨


πŸ’– DESCRIPTION πŸ’–

πŸŽ€ Commands πŸŽ€

  • build β€” build a project from build.zig πŸ—οΈ
  • fetch β€” copy a package into the global cache and print its hash πŸ”₯
  • init β€” initialize a Zig package in the current directory, fresh start energy 🐣
  • build-exe β€” create an executable from source or object files πŸ‘‘
  • build-lib β€” create a library from source or object files πŸ“š
  • build-obj β€” create an object from source or object files 🧊
  • test β€” perform unit testing (yes queen, test ur code) πŸ§ͺ
  • test-obj β€” create an object for unit testing πŸ§ͺ
  • run β€” create an executable and run it immediately, no thoughts just go πŸ’¨
  • ast-check β€” look for simple compile errors in any set of files πŸ”
  • fmt β€” reformat Zig source into canonical form, slay πŸ’…
  • reduce β€” minimize a bug report (tiny bug, big drama) πŸ›
  • translate-c β€” convert C code to Zig code πŸ”„
  • ar β€” combine object files into a static archive πŸ“¦
  • cc β€” use Zig as a drop-in C compiler 🌈
  • c++ β€” use Zig as a drop-in C++ compiler 🌈
  • dlltool β€” use Zig as a drop-in dlltool.exe πŸͺŸ
  • lib β€” use Zig as a drop-in lib.exe πŸͺŸ
  • objcopy β€” manipulate executables and relocatables πŸ”§
  • objdump β€” print information about executables and relocatables πŸ–¨οΈ
  • ranlib β€” use Zig as a drop-in ranlib πŸ“‡
  • rc β€” use Zig as a drop-in rc.exe πŸͺŸ
  • env β€” print lib path, std path, cache directory, and version 🌍
  • help β€” print this help and exit πŸ†˜
  • std β€” view standard library documentation in a browser 🌐
  • libc β€” display native libc paths file or validate one 🧷
  • targets β€” list available compilation targets 🎯
  • version β€” print version number and exit πŸ”’
  • zen β€” print Zen of Zig and exit 🧘

🌟 General Options 🌟

  • -h, --help β€” print command-specific usage 🫢
fr fr bestie, that's the whole page. every command, every flag, no notes. iykyk πŸ’œ

and that's a wrap, gorgeous β€” this page is from zig 0.16.0, dated April 2026 🌸 go write some Zig, you're gonna eat πŸ’…βœ¨

πŸ“¦ where this page comes from
  • fedora 43: zig 0.16.0-1.fc43 Β· MIT AND NCSA AND LGPL-2.1-or-later AND LGPL-2.1-or-later WITH GCC-exception-2.0 AND GPL-2.0-or-later AND GPL-2.0-or-later WITH GCC-exception-2.0 AND BSD-3-Clause AND Inner-Net-2.0 AND ISC AND LicenseRef-Fedora-Public-Domain AND GFDL-1.1-or-later AND ZPL-2.1
  • fedora 44: zig 0.16.0-1.fc44 Β· MIT AND NCSA AND LGPL-2.1-or-later AND LGPL-2.1-or-later WITH GCC-exception-2.0 AND GPL-2.0-or-later AND GPL-2.0-or-later WITH GCC-exception-2.0 AND BSD-3-Clause AND Inner-Net-2.0 AND ISC AND LicenseRef-Fedora-Public-Domain AND GFDL-1.1-or-later AND ZPL-2.1
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms