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

fx host-tool

run a host tool produced by the build

usage: fx host-tool [--no-build|--force-build] TOOLNAME [TOOL_ARGS...]

This looks for a tool named TOOLNAME in tool-paths.json and executes it
with the provided TOOL_ARGS.
   --no-build      does not attempt to build the tool if it does not exist
   --force-build   always attempt to build the tool, even if it exists
If the tool is not known to the build system, for example if it is not in
the GN build graph, a proper message will be printed and the script fails.
This script is specially useful for other scripts, via fx-command-run,
although it can also be used directly by final users.

host-tool source code