ZIG(1)

πŸ“¦ version 0.15.2~us1, in ubuntu resolute, ubuntu stonking

πŸ’– 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 from build.zig πŸ”₯
  • fetch β€” Copy a package into global cache and print its hash
  • init β€” Initialize a Zig package in the current directory
  • build-exe β€” Create executable from source or object files
  • build-lib β€” Create library from source or object files
  • build-obj β€” Create object from source or object files
  • test β€” Perform unit testing
  • test-obj β€” Create object for unit testing
  • run β€” Create executable and run immediately (no thoughts, just vibes πŸƒβ™€οΈ)
  • ast-check β€” Look for simple compile errors in any set of files
  • fmt β€” Reformat Zig source into canonical form (glow-up for your code ✨)
  • reduce β€” Minimize a bug report
  • translate-c β€” Convert C code to Zig code
  • ar β€” Use Zig as a drop-in archiver
  • 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
  • ranlib β€” Use Zig as a drop-in ranlib
  • objcopy β€” Use Zig as a drop-in objcopy
  • 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 πŸ§˜β™€οΈ (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