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
cleandead Delete stale generated files in the build output directory.
cleandead-build Delete stale generated files 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 Fuchsia build directories.
get-build-dir print the current fuchsia build directory
get-src-dir print the Fuchsia source directory (checkout root, aka "//")
gn meta-build system that generates build files for Ninja
go Manage Go source code
goma_auth set up authentication for the Goma distributed compilation client
goma_ctl control the local Goma distributed compilation client
jq5 Extends the functionality of jq to json5 objects.
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
repro Locally replicate the result of infra builds and tests
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
goma manage Goma distributed compilation client
smoke-test Finds and runs tests affected by the current change.
symbol-index manipulate the symbol-index file