Create an empty project:
$ xmake create -l zig -t console test
add_rules("mode.debug", "mode.release") target("test") set_kind("binary") add_files("src/*.zig")
For more examples, see: Zig Examples