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

Build fx subcommands

Command Description
args manually edit for the current build directory
build Run Ninja to build Fuchsia
clean clean the current Fuchsia and Zircon build artifacts
clean-build clean the build directory and then perform a full build
cmc Component manifest compiler
fargo Fargo is a prototype Fuchsia-specific wrapper around Cargo
fetch-build-artifacts TODO( under construction.
gen run gn gen against the Zircon and Fuchsia build directories.
get-build-dir print the current fuchsia build directory
gn meta-build system that generates build files for Ninja
goma_auth set up authentication for the Goma distributed compilation client
goma_ctl control the local Goma distributed compilation client
list-boards list boards available for building
list-packages list packages are built
list-products list products available for building
ninja directly run the build system. Don't use for regular workflows.
ninjatrace2json Collect Ninja trace information for analysis in chrome://tracing
self-build build the minimal host dependencies to run fx main workflows
set set up a build directory
set-build-dir set the default build directory used by other fx commands
use re-use a previous build directory set up by fx set
check-deps checks dependency graph in areas
compdb Generates a compile_commands.json file in FUCHSIA_DIR using the current build configuration
goma manage Goma distributed compilation client
smoke-test Finds and runs tests affected by the current change.
symbol-index manipulate the symbol-index file