Subcommands27 subcommands
zig build
Build project from build.zig
zig build install
Copy build artifacts to prefix path
zig build uninstall
Remove build artifacts from prefix path
zig build test
Run unit tests
zig init-exe
Initializes a `zig build` project in the current working directory
zig init-lib
Initializes a `zig build` project in the current working directory
zig ast-check
Given a .zig source file, reports any compile errors that can be ascertained on the basis of the source code alone, without target information or type checking. If [file] is omitted, stdin is used.
zig build-exe
Create executable from source or object files
zig build-lib
Create library from source or object files
zig build-obj
Create library from source or object files
zig fmt
Reformat Zig source into canonical form
zig run
Create executable and run immediately
zig test
Create and run a test build
zig translate-c
Convert C code to Zig code
zig cc
Use Zig as a drop-in C compiler
zig c++
Use Zig as a drop-in C++ compiler
zig dll-tool
LLVM dll tool
zig lib
Use Zig as a drop-in lib.exe
zig ranlib
LLVM Ranlib : This program generates an index to speed access to archives
zig env
Print lib path, std path, cache directory, and version
zig help
Print help and exit
zig libc
Detect the native libc installation and print the resulting paths to stdout
zig targets
List available compilation targets
zig version
Print version number and exit
zig zen
Print Zen of Zig and exit