Google is committed to advancing racial equity for Black communities. See how.

fx list-build-artifacts

Builds and returns a list of a desired set of build artifacts

usage: fx list-build-artifacts [--build] [--allow-empty | --expect-one] [FILTERS...] MODE

Builds and returns a list of paths to special sets of build artifacts within
the GN graph relative to the build directory.

 --build       build the artifacts as well as returning a list of them
 --allow-empty do not fail if no such artifacts are found
 --expect-one  fail if zero or more than one artifacts are found. This
               option is mutually exclusive from `--allow-empty`.
 --name        filter the set of artifacts to pick out the particular one of
               the same name
 --os          filter the set of artifacts by intended operating system: one
               of `fuchsia`, `linux`, or `mac`. Defaults to $HOST_OS when
               the mode is `tools.`
 --cpu         filter the set of artifacts by intended architecture: one of
               `x64` or `arm64`. Defaults to $HOST_CPU when the mode is
               `tools`.
 --type         filter the set of artifacts by type.

 MODE          One of the following:
               `images` -- returns the list of images
               `pave`-- returns the list of images needed to pave;
               `pave-zedboot`-- returns the list of images needed to pave
               zedboot;
               `netboot`-- returns the list of images needed to netboot
               `flash`-- returns the list of images needed to flash
               `tools` -- returns the list of host tools
               `zbi-tests`-- returns the list of ZBI tests
               `generated-sources`-- returns the list of generated sources

list-build-artifacts source code