Scroll to navigation

ZIG(1) User Commands ZIG(1)

NAME

zig - manual page for zig 0.13.0

SYNOPSIS

zig [command] [options]

DESCRIPTION

Commands:

Build project from build.zig
Copy a package into global cache and print its hash
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
Perform unit testing
Create executable and run immediately
Look for simple compile errors in any set of files
Reformat Zig source into canonical form
Minimize a bug report
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
Use Zig as a drop-in rc.exe
Print lib path, std path, cache directory, and version
Print this help and exit
View standard library documentation in a browser
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.

June 2024 zig 0.13.0