Scroll to navigation

ZIG(1) User Commands ZIG(1)

NAME

zig - manual page for zig 0.11.0

SYNOPSIS

zig [command] [options]

DESCRIPTION

Commands:

Build project from build.zig
Initialize a `zig build` application in the cwd
Initialize a `zig build` library in the cwd
Look for simple compile errors in any set of files
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
Reformat Zig source into canonical form
Create executable and run immediately
Create and run a test build
Convert C code to Zig code
Use Zig as a drop-in archiver
Use Zig as a drop-in C compiler
Use Zig as a drop-in C++ compiler
Use Zig as a drop-in dlltool.exe
Use Zig as a drop-in lib.exe
Use Zig as a drop-in ranlib
Use Zig as a drop-in objcopy
Print lib path, std path, cache directory, and version
Print this help and exit
Display native libc paths file or validate one
List available compilation targets
Print version number and exit
Print Zen of Zig and exit

General Options:

Print command-specific usage

SEE ALSO

The full documentation for zig is maintained as a Texinfo manual. If the info and zig programs are properly installed at your site, the command

info zig

should give you access to the complete manual.

November 2023 zig 0.11.0