`fx` is the entry-point for a set of subcommands that make many tasks related to Fuchsia development easier.

It contains a large number of subcommands. Run `fx help` to see all the available subcommands.
If you use bash or zsh as a shell, source `scripts/fx-env.sh`  

to get some auto-completion.

Also see the [global options and flags](https://fuchsia.dev/reference/tools/fx/fx) that affect all subcommands.

# fx subcommands

## Main subcommands

Subcommands that are part of the [fx workflow](https://fuchsia.dev/docs/development/build/fx).

| Command | Category | Description |
|---|---|---|
| [add-update-source](https://fuchsia.dev/reference/tools/fx/cmd/add-update-source) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | register a repository package server as a device's update source |
| [args](https://fuchsia.dev/reference/tools/fx/cmd/args) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | manually edit args.gn for the current build directory |
| [atomic-commit](https://fuchsia.dev/reference/tools/fx/cmd/atomic-commit) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Create a pair of changes that will be submitted atomically. It will modify |
| [bazel](https://fuchsia.dev/reference/tools/fx/cmd/bazel) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Run experimental Bazel build for Fuchsia platform tree |
| [bazel-tool](https://fuchsia.dev/reference/tools/fx/cmd/bazel-tool) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Run the bazel-tool script in the Fuchsia Bazel workspace. |
| [bootfs-size-report](https://fuchsia.dev/reference/tools/fx/cmd/bootfs-size-report) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | produce an uncompressed size report from a ZBI |
| [build](https://fuchsia.dev/reference/tools/fx/cmd/build) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Run Ninja to build Fuchsia |
| [build-and-upload](https://fuchsia.dev/reference/tools/fx/cmd/build-and-upload) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Build and upload to GCS. |
| [build-metrics](https://fuchsia.dev/reference/tools/fx/cmd/build-metrics) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | manage build metrics configuration |
| [build-profile](https://fuchsia.dev/reference/tools/fx/cmd/build-profile) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | manage build profile configuration |
| [cipd](https://fuchsia.dev/reference/tools/fx/cmd/cipd) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | run the cipd command line tool |
| [clean](https://fuchsia.dev/reference/tools/fx/cmd/clean) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | clean the current Fuchsia build artifacts |
| [clean-build](https://fuchsia.dev/reference/tools/fx/cmd/clean-build) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Clean the build directory and then perform a full build |
| [cleandead](https://fuchsia.dev/reference/tools/fx/cmd/cleandead) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Delete stale generated files in the build output directory. |
| [cleandead-build](https://fuchsia.dev/reference/tools/fx/cmd/cleandead-build) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Delete stale generated files and then perform a full build. |
| [cleanrepo](https://fuchsia.dev/reference/tools/fx/cmd/cleanrepo) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Remove the published repsitory in amber-files/. |
| [cleanrepo-build](https://fuchsia.dev/reference/tools/fx/cmd/cleanrepo-build) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Remove the published repsitory in amber-files/ and perform a full build. |
| [cmc](https://fuchsia.dev/reference/tools/fx/cmd/cmc) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Component manifest compiler |
| [cp](https://fuchsia.dev/reference/tools/fx/cmd/cp) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | copy a file to/from a target device |
| [create-pb-zip](https://fuchsia.dev/reference/tools/fx/cmd/create-pb-zip) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Create pb.zip suitable for flashing based on product_bundles.json file. |
| [create](https://fuchsia.dev/reference/tools/fx/cmd/create) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Scaffold new projects |
| [debug](https://fuchsia.dev/reference/tools/fx/cmd/debug) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Starts target-side zxdb debug sessions |
| [doc-checker](https://fuchsia.dev/reference/tools/fx/cmd/doc-checker) | [Code submission and review](https://fuchsia.dev/reference/tools/fx/code_submission_and_review/README) | Check the markdown documentation using a variety of checks. |
| [emu](https://fuchsia.dev/reference/tools/fx/cmd/emu) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Emulate a device and interact with it (forwarded to ffx emu). |
| [exec](https://fuchsia.dev/reference/tools/fx/cmd/exec) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | read the current build config, then exec |
| [fargo](https://fuchsia.dev/reference/tools/fx/cmd/fargo) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Fargo is a prototype Fuchsia-specific wrapper around Cargo |
| [fetch-build-artifacts](https://fuchsia.dev/reference/tools/fx/cmd/fetch-build-artifacts) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | TODO(https://fxbug.dev/42139110): under construction. |
| [flash](https://fuchsia.dev/reference/tools/fx/cmd/flash) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | flash a connected device |
| [flash-remote](https://fuchsia.dev/reference/tools/fx/cmd/flash-remote) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Remotely build, fetch and flash a Fuchsia image onto a device, see https://fuchsia.dev/fuchsia-src/development/sdk/ffx/flash-a-device |
| [format-code](https://fuchsia.dev/reference/tools/fx/cmd/format-code) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | runs source formatters on modified files via SHAC |
| [gen](https://fuchsia.dev/reference/tools/fx/cmd/gen) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | run `gn gen` against the Fuchsia build directories. |
| [get-build-artifacts](https://fuchsia.dev/reference/tools/fx/cmd/get-build-artifacts) | [Internal api](https://fuchsia.dev/reference/tools/fx/internal_api/README) | DEPRECATED! Renamed to `list-build-artifacts` |
| [get-build-dir](https://fuchsia.dev/reference/tools/fx/cmd/get-build-dir) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | print the current fuchsia build directory |
| [get-device](https://fuchsia.dev/reference/tools/fx/cmd/get-device) | [Device discovery](https://fuchsia.dev/reference/tools/fx/device_discovery/README) | print the current selected device name |
| [get-device-addr](https://fuchsia.dev/reference/tools/fx/cmd/get-device-addr) | [Device discovery](https://fuchsia.dev/reference/tools/fx/device_discovery/README) | print the Fuchsia address of the current selected device |
| [get-flash-source](https://fuchsia.dev/reference/tools/fx/cmd/get-flash-source) | [Internal api](https://fuchsia.dev/reference/tools/fx/internal_api/README) | Builds and returns a list of a desired set of build artifacts |
| [get-src-dir](https://fuchsia.dev/reference/tools/fx/cmd/get-src-dir) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | print the Fuchsia source directory (checkout root, aka "//") |
| [get-workspace-dir](https://fuchsia.dev/reference/tools/fx/cmd/get-workspace-dir) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | print the Bazel workspace directory |
| [gn](https://fuchsia.dev/reference/tools/fx/cmd/gn) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | meta-build system that generates build files for Ninja |
| [go](https://fuchsia.dev/reference/tools/fx/cmd/go) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Manage Go source code |
| [helpdoc](https://fuchsia.dev/reference/tools/fx/cmd/helpdoc) | [Documentation](https://fuchsia.dev/reference/tools/fx/documentation/README) | create markdown docs for fx subcommands |
| [host-tool](https://fuchsia.dev/reference/tools/fx/cmd/host-tool) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | run a host tool produced by the build |
| [is-package-server-running](https://fuchsia.dev/reference/tools/fx/cmd/is-package-server-running) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | check if the package server is running |
| [jiri](https://fuchsia.dev/reference/tools/fx/cmd/jiri) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | multi-purpose tool for multi-repo development. |
| [jq](https://fuchsia.dev/reference/tools/fx/cmd/jq) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | jq is a utility for manipulating JSON on the command-line. |
| [jq5](https://fuchsia.dev/reference/tools/fx/cmd/jq5) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Extends the functionality of jq to json5 objects. |
| [klog](https://fuchsia.dev/reference/tools/fx/cmd/klog) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | listen for kernel logs |
| [lint](https://fuchsia.dev/reference/tools/fx/cmd/lint) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | runs static analysis checks on modified files via SHAC |
| [list-boards](https://fuchsia.dev/reference/tools/fx/cmd/list-boards) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | list boards available for building |
| [list-build-artifacts](https://fuchsia.dev/reference/tools/fx/cmd/list-build-artifacts) | [Internal api](https://fuchsia.dev/reference/tools/fx/internal_api/README) | Builds and returns a list of a desired set of build artifacts |
| [list-devices](https://fuchsia.dev/reference/tools/fx/cmd/list-devices) | [Device discovery](https://fuchsia.dev/reference/tools/fx/device_discovery/README) | list all nearby devices (excluding those on zedboot) |
| [list-products](https://fuchsia.dev/reference/tools/fx/cmd/list-products) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | list products available for building |
| [list-usb-disks](https://fuchsia.dev/reference/tools/fx/cmd/list-usb-disks) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | list attached usb disks |
| [local-publish-platform](https://fuchsia.dev/reference/tools/fx/cmd/local-publish-platform) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Release platform artifacts to local CIPD instances. |
| [log](https://fuchsia.dev/reference/tools/fx/cmd/log) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Display logs from a target device. |
| [mdlint](https://fuchsia.dev/reference/tools/fx/cmd/mdlint) | [Code submission and review](https://fuchsia.dev/reference/tools/fx/code_submission_and_review/README) | Markdown linter |
| [merge-package-config](https://fuchsia.dev/reference/tools/fx/cmd/merge-package-config) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [metrics](https://fuchsia.dev/reference/tools/fx/cmd/metrics) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | manage collection of metrics in fx tools |
| [mkzedboot](https://fuchsia.dev/reference/tools/fx/cmd/mkzedboot) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | make a zedboot USB key |
| [mkzedboot-remote](https://fuchsia.dev/reference/tools/fx/cmd/mkzedboot-remote) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | make a zedboot USB key |
| [multi](https://fuchsia.dev/reference/tools/fx/cmd/multi) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Run an `fx` command across multiple build directories. |
| [netaddr](https://fuchsia.dev/reference/tools/fx/cmd/netaddr) | [Device discovery](https://fuchsia.dev/reference/tools/fx/device_discovery/README) | get the address of a running fuchsia system |
| [netls](https://fuchsia.dev/reference/tools/fx/cmd/netls) | [Device discovery](https://fuchsia.dev/reference/tools/fx/device_discovery/README) | list running fuchsia systems on the local network |
| [ninja](https://fuchsia.dev/reference/tools/fx/cmd/ninja) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | directly run the build system. Don't use for regular workflows. |
| [ninjatrace2json](https://fuchsia.dev/reference/tools/fx/cmd/ninjatrace2json) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Collect Ninja trace information for analysis in chrome://tracing |
| [node-names](https://fuchsia.dev/reference/tools/fx/cmd/node-names) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | find other names for the same node |
| [ota](https://fuchsia.dev/reference/tools/fx/cmd/ota) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | perform a system OTA on a connected device |
| [qemu](https://fuchsia.dev/reference/tools/fx/cmd/qemu) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | start fuchsia in qemu with a FVM disk |
| [rbe](https://fuchsia.dev/reference/tools/fx/cmd/rbe) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | check remote build configuration |
| [reboot](https://fuchsia.dev/reference/tools/fx/cmd/reboot) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | reboot a target fuchsia system |
| [repro](https://fuchsia.dev/reference/tools/fx/cmd/repro) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Locally replicate the result of infra builds and tests |
| [resultstore](https://fuchsia.dev/reference/tools/fx/cmd/resultstore) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Manage build ResultStore configuration. ResultStore is a service |
| [rfc](https://fuchsia.dev/reference/tools/fx/cmd/rfc) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Scaffold new RFCs |
| [run-host-tests](https://fuchsia.dev/reference/tools/fx/cmd/run-host-tests) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | DEPRECATED! build and run tests on host |
| [run-in-build-dir](https://fuchsia.dev/reference/tools/fx/cmd/run-in-build-dir) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Run the given command at the root of the current build directory |
| [run-netboot](https://fuchsia.dev/reference/tools/fx/cmd/run-netboot) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | start fuchsia in qemu via netboot |
| [run-script](https://fuchsia.dev/reference/tools/fx/cmd/run-script) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Run a custom combination of commands, able to take advantage of `fx -i` (iterative mode) |
| [scp](https://fuchsia.dev/reference/tools/fx/cmd/scp) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | invoke scp with the build ssh config |
| [sdk-deps](https://fuchsia.dev/reference/tools/fx/cmd/sdk-deps) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | DEPRECATED! List the dependencies of a target, and if dependencies are in SDK |
| [self-build](https://fuchsia.dev/reference/tools/fx/cmd/self-build) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | build the minimal host dependencies to run fx main workflows |
| [self-test](https://fuchsia.dev/reference/tools/fx/cmd/self-test) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | run tests of fx and subcommands |
| [serial](https://fuchsia.dev/reference/tools/fx/cmd/serial) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | attach to a serial console |
| [serve](https://fuchsia.dev/reference/tools/fx/cmd/serve) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | start the update server and attach to a running fuchsia device |
| [serve-remote](https://fuchsia.dev/reference/tools/fx/cmd/serve-remote) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | serve from a remote workstation |
| [set](https://fuchsia.dev/reference/tools/fx/cmd/set) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | set up a build directory |
| [set-build-dir](https://fuchsia.dev/reference/tools/fx/cmd/set-build-dir) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | set the default build directory used by other fx commands |
| [set-device](https://fuchsia.dev/reference/tools/fx/cmd/set-device) | [Device discovery](https://fuchsia.dev/reference/tools/fx/device_discovery/README) | set the default device to interact with |
| [set-main-pb](https://fuchsia.dev/reference/tools/fx/cmd/set-main-pb) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | set which product bundle to build in a multi-product environment |
| [setup-firewall](https://fuchsia.dev/reference/tools/fx/cmd/setup-firewall) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | setup Linux firewall rules to allow Fuchsia device and emulator traffic. |
| [setup-ufw](https://fuchsia.dev/reference/tools/fx/cmd/setup-ufw) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | setup Linux firewall rules to allow Fuchsia device and emulator traffic. |
| [sftp](https://fuchsia.dev/reference/tools/fx/cmd/sftp) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | invoke sftp with the build ssh config |
| [shell](https://fuchsia.dev/reference/tools/fx/cmd/shell) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | start a remote interactive shell in the target device |
| [ssh](https://fuchsia.dev/reference/tools/fx/cmd/ssh) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | invoke ssh with the ssh keys and configuration for Fuchsia devices. |
| [status](https://fuchsia.dev/reference/tools/fx/cmd/status) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | print relevant information about the developer setup |
| [sync](https://fuchsia.dev/reference/tools/fx/cmd/sync) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Bootstrap and synchronize local dependencies for a Fuchsia git checkout |
| [sync-to](https://fuchsia.dev/reference/tools/fx/cmd/sync-to) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Sync the local Fuchsia source tree to a given state |
| [syslog](https://fuchsia.dev/reference/tools/fx/cmd/syslog) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | DEPRECATED! deprecated alias for fx log |
| [test](https://fuchsia.dev/reference/tools/fx/cmd/test) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | Entry point for all Fuchsia tests (host, target, and end-to-end) |
| [testgen](https://fuchsia.dev/reference/tools/fx/cmd/testgen) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | Component integration test auto-generator |
| [unset-device](https://fuchsia.dev/reference/tools/fx/cmd/unset-device) | [Device discovery](https://fuchsia.dev/reference/tools/fx/device_discovery/README) | unset the default device to interact with |
| [update](https://fuchsia.dev/reference/tools/fx/cmd/update) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | DEPRECATED! deprecated alias for fx ota |
| [update-if-in-base](https://fuchsia.dev/reference/tools/fx/cmd/update-if-in-base) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | check if packages are in base and update the device if needed |
| [use](https://fuchsia.dev/reference/tools/fx/cmd/use) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | re-use a previous build directory set up by `fx set` |
| [vendor](https://fuchsia.dev/reference/tools/fx/cmd/vendor) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | forward commands to vendor/\*/scripts/devshell |
| [wait](https://fuchsia.dev/reference/tools/fx/cmd/wait) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | wait for a shell to become available |
| [worktree](https://fuchsia.dev/reference/tools/fx/cmd/worktree) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Manage Fuchsia worktrees |

## Contrib subcommands

Subcommands that have been contributed by project members that have other levels of support, ownership, or both.
The [OWNERS file](https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/devshell/contrib/OWNERS) in the
contrib directory provides a pointer to the member that supports each script.

| Command | Category | Description |
|---|---|---|
| [add-host-test](https://fuchsia.dev/reference/tools/fx/cmd/add-host-test) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | add a GN label to args.gn and regen |
| [add-test](https://fuchsia.dev/reference/tools/fx/cmd/add-test) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | add a GN label to args.gn and regen |
| [agents](https://fuchsia.dev/reference/tools/fx/cmd/agents) | [Developer tools](https://fuchsia.dev/reference/tools/fx/developer_tools/README) | Manage AI coding agent configuration, permissions, and developer workflows. |
| [arm-esr](https://fuchsia.dev/reference/tools/fx/cmd/arm-esr) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | decode ARM Exception Syndrome Register values |
| [bazel2gn](https://fuchsia.dev/reference/tools/fx/cmd/bazel2gn) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Syncs BUILD.gn and BUILD.bazel for targets that are dual-building in both. |
| [bindc](https://fuchsia.dev/reference/tools/fx/cmd/bindc) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | run the bind program compiler and debugger |
| [binutils](https://fuchsia.dev/reference/tools/fx/cmd/binutils) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Provides a shortcut to the prebuilt LLVM binutils tools |
| [bisect-rustc](https://fuchsia.dev/reference/tools/fx/cmd/bisect-rustc) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [blobstats](https://fuchsia.dev/reference/tools/fx/cmd/blobstats) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | compute some blobfs statistics from the build |
| [bt-snoop-from-snapshot](https://fuchsia.dev/reference/tools/fx/cmd/bt-snoop-from-snapshot) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | extract a snoop log from a snapshot as pcap formatted data |
| [build-main-pb](https://fuchsia.dev/reference/tools/fx/cmd/build-main-pb) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | build the current default product bundle |
| [build-zbi](https://fuchsia.dev/reference/tools/fx/cmd/build-zbi) | [Kernel](https://fuchsia.dev/reference/tools/fx/kernel/README) | Publish a product zbi to be flashed to a device for development. |
| [check-deps](https://fuchsia.dev/reference/tools/fx/cmd/check-deps) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | checks dependency graph in areas |
| [check-goldens](https://fuchsia.dev/reference/tools/fx/cmd/check-goldens) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Checks all golden file comparisons in the GN build graph. |
| [check-licenses](https://fuchsia.dev/reference/tools/fx/cmd/check-licenses) | [Documentation](https://fuchsia.dev/reference/tools/fx/documentation/README) | analyze the license state of a given package or directory |
| [cl](https://fuchsia.dev/reference/tools/fx/cmd/cl) | [Code submission and review](https://fuchsia.dev/reference/tools/fx/code_submission_and_review/README) | Print the gerrit review URL and attempts to open it in the user's default browser. |
| [clang-tidy](https://fuchsia.dev/reference/tools/fx/cmd/clang-tidy) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | runs clang-tidy on specified files |
| [clippy](https://fuchsia.dev/reference/tools/fx/cmd/clippy) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Runs a Rust helper script inside the fx environment |
| [clippy](https://fuchsia.dev/reference/tools/fx/cmd/clippy) | [Diagnostic](https://fuchsia.dev/reference/tools/fx/diagnostic/README) |   |
| [compdb](https://fuchsia.dev/reference/tools/fx/cmd/compdb) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | DEPRECATED |
| [core-tests](https://fuchsia.dev/reference/tools/fx/cmd/core-tests) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | run zircon core-tests |
| [coverage](https://fuchsia.dev/reference/tools/fx/cmd/coverage) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | Runs test and exports coverage data. |
| [cpu-stats](https://fuchsia.dev/reference/tools/fx/cmd/cpu-stats) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | generate a report of CPU stats from a snapshot |
| [crosvm](https://fuchsia.dev/reference/tools/fx/cmd/crosvm) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Run crosvm |
| [dis](https://fuchsia.dev/reference/tools/fx/cmd/dis) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Disassembles a given binary in the build. |
| [download-baseline](https://fuchsia.dev/reference/tools/fx/cmd/download-baseline) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Finds the most recent successful sample build for a given builder and downloads its metrics. |
| [download-metrics](https://fuchsia.dev/reference/tools/fx/cmd/download-metrics) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Downloads metrics artifacts from CAS. |
| [download-toolchain](https://fuchsia.dev/reference/tools/fx/cmd/download-toolchain) | [Toolchain](https://fuchsia.dev/reference/tools/fx/toolchain/README) | Download prebuilt toolchains (clang, rust) from CI |
| [dtsfmt](https://fuchsia.dev/reference/tools/fx/cmd/dtsfmt) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | dtsfmt is a utility for formatting device tree source (.dts) files. |
| [dupefinder](https://fuchsia.dev/reference/tools/fx/cmd/dupefinder) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Report on duplicate allocations from a heap dump. |
| [enable-ffx-usb](https://fuchsia.dev/reference/tools/fx/cmd/enable-ffx-usb) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Enable support for ffx's USB protocol |
| [exec-host-tests](https://fuchsia.dev/reference/tools/fx/cmd/exec-host-tests) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) |   |
| [extract-metrics](https://fuchsia.dev/reference/tools/fx/cmd/extract-metrics) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Extracts metrics from Fuchsia performance results. |
| [extract-pprof](https://fuchsia.dev/reference/tools/fx/cmd/extract-pprof) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Extract pprof data from inspect.json |
| [extract-zbi](https://fuchsia.dev/reference/tools/fx/cmd/extract-zbi) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [fastboot](https://fuchsia.dev/reference/tools/fx/cmd/fastboot) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | interact directly with a device's bootloader via the fastboot protocol |
| [fetch-toolchain](https://fuchsia.dev/reference/tools/fx/cmd/fetch-toolchain) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Download toolchain from CAS and print instructions |
| [ffx](https://fuchsia.dev/reference/tools/fx/cmd/ffx) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | execute ffx - developer tools for fuchsia devices. |
| [fidlcat](https://fuchsia.dev/reference/tools/fx/cmd/fidlcat) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Deprecated, please use "ffx debug fidl" |
| [fidldoc](https://fuchsia.dev/reference/tools/fx/cmd/fidldoc) | [Documentation](https://fuchsia.dev/reference/tools/fx/documentation/README) | generate documentation for FIDL |
| [fidltags](https://fuchsia.dev/reference/tools/fx/cmd/fidltags) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | generate tags for .fidl files |
| [find-owner](https://fuchsia.dev/reference/tools/fx/cmd/find-owner) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [flash-kola](https://fuchsia.dev/reference/tools/fx/cmd/flash-kola) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Flash Fuchsia onto a Kola board that has an unmodified bootloader. |
| [force-ota-from-devhost](https://fuchsia.dev/reference/tools/fx/cmd/force-ota-from-devhost) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | DEPRECATED! deprecated alias for fx ota |
| [fuzz](https://fuchsia.dev/reference/tools/fx/cmd/fuzz) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | DEPRECATED! run a fuzz test on target a device |
| [gc](https://fuchsia.dev/reference/tools/fx/cmd/gc) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | garbage collect packages on the target (reboots!) |
| [gen-cargo](https://fuchsia.dev/reference/tools/fx/cmd/gen-cargo) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Runs a Rust helper script inside the fx environment |
| [gen-cargo](https://fuchsia.dev/reference/tools/fx/cmd/gen-cargo) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | generate symlinks to Rust Cargo.toml output files |
| [gen-watchman-config](https://fuchsia.dev/reference/tools/fx/cmd/gen-watchman-config) | [Developer tools](https://fuchsia.dev/reference/tools/fx/developer_tools/README) | generates a .watchmanconfig file for use with jj |
| [gerrit-split-cl](https://fuchsia.dev/reference/tools/fx/cmd/gerrit-split-cl) | [Code submission and review](https://fuchsia.dev/reference/tools/fx/code_submission_and_review/README) | Submits chains of CLs to Gerrit |
| [gerrit-submit](https://fuchsia.dev/reference/tools/fx/cmd/gerrit-submit) | [Code submission and review](https://fuchsia.dev/reference/tools/fx/code_submission_and_review/README) | Submits chains of CLs to Gerrit |
| [get-main-pb-path](https://fuchsia.dev/reference/tools/fx/cmd/get-main-pb-path) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | get the output path to the provided product bundle |
| [gum](https://fuchsia.dev/reference/tools/fx/cmd/gum) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | gum is a utility for adding interactivity to scripts |
| [iquery](https://fuchsia.dev/reference/tools/fx/cmd/iquery) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [list-owners](https://fuchsia.dev/reference/tools/fx/cmd/list-owners) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Finds the nearest OWNERS file corresponding to the provided path, or the |
| [list-packages](https://fuchsia.dev/reference/tools/fx/cmd/list-packages) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | List which packages are built. |
| [llvm](https://fuchsia.dev/reference/tools/fx/cmd/llvm) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Provides a shortcut to the prebuilt Clang / LLVM tools |
| [ls-buildid](https://fuchsia.dev/reference/tools/fx/cmd/ls-buildid) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Find binaries among build directories, the checkout, and Google Cloud |
| [make-fuchsia-vol](https://fuchsia.dev/reference/tools/fx/cmd/make-fuchsia-vol) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | build a fuchsia persistent disk |
| [min-owners](https://fuchsia.dev/reference/tools/fx/cmd/min-owners) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | Suggests a minimal set of code owners to review a commit. |
| [mkinstaller](https://fuchsia.dev/reference/tools/fx/cmd/mkinstaller) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | make a Fuchsia installer image |
| [mkinstaller-remote](https://fuchsia.dev/reference/tools/fx/cmd/mkinstaller-remote) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | make a Fuchsia installer image from a remote build host |
| [move-docs](https://fuchsia.dev/reference/tools/fx/cmd/move-docs) | [Documentation](https://fuchsia.dev/reference/tools/fx/documentation/README) | Helper tool to batch move docs from one location to another |
| [pending-commits](https://fuchsia.dev/reference/tools/fx/cmd/pending-commits) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | view commits not yet published to global integration |
| [perf-analyze](https://fuchsia.dev/reference/tools/fx/cmd/perf-analyze) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Standalone Performance Analysis Tool |
| [pprof](https://fuchsia.dev/reference/tools/fx/cmd/pprof) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | pprof wrapper that gives access to local files in symbol-index |
| [publish](https://fuchsia.dev/reference/tools/fx/cmd/publish) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | publish a set of packages |
| [qemu-cipd-ensure](https://fuchsia.dev/reference/tools/fx/cmd/qemu-cipd-ensure) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Generate CIPD files to download the current QEMU package. |
| [readme_fuchsia](https://fuchsia.dev/reference/tools/fx/cmd/readme_fuchsia) | [Documentation](https://fuchsia.dev/reference/tools/fx/documentation/README) | parse, format, and validate README.fuchsia files |
| [refresh-bazel-compdb](https://fuchsia.dev/reference/tools/fx/cmd/refresh-bazel-compdb) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [remove-update-source](https://fuchsia.dev/reference/tools/fx/cmd/remove-update-source) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | unregister a repository package server as a device's update source |
| [roll-compiler](https://fuchsia.dev/reference/tools/fx/cmd/roll-compiler) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [run-boot-test](https://fuchsia.dev/reference/tools/fx/cmd/run-boot-test) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Run a ZBI test |
| [run-boot-test.py](https://fuchsia.dev/reference/tools/fx/cmd/run-boot-test.py) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [run-e2e-tests](https://fuchsia.dev/reference/tools/fx/cmd/run-e2e-tests) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | run e2e tests |
| [run-in-build](https://fuchsia.dev/reference/tools/fx/cmd/run-in-build) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Run a command in the build directory |
| [run-recovery](https://fuchsia.dev/reference/tools/fx/cmd/run-recovery) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | start Fuchsia System Recovery in qemu |
| [run-zbi-test-remote](https://fuchsia.dev/reference/tools/fx/cmd/run-zbi-test-remote) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Remotely build a ZBI test, fetch and run it |
| [rust-3p-outdated](https://fuchsia.dev/reference/tools/fx/cmd/rust-3p-outdated) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Runs a Rust helper script inside the fx environment |
| [rust-3p-outdated](https://fuchsia.dev/reference/tools/fx/cmd/rust-3p-outdated) | [Diagnostic](https://fuchsia.dev/reference/tools/fx/diagnostic/README) |   |
| [rustdoc-link](https://fuchsia.dev/reference/tools/fx/cmd/rustdoc-link) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Runs a Rust helper script inside the fx environment |
| [rustdoc-link](https://fuchsia.dev/reference/tools/fx/cmd/rustdoc-link) | [Documentation](https://fuchsia.dev/reference/tools/fx/documentation/README) | Link generated documentation for Rust code. Replaces `fx rustdoc` |
| [set-petal](https://fuchsia.dev/reference/tools/fx/cmd/set-petal) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | configure jiri to manage a specific petal |
| [set-relay](https://fuchsia.dev/reference/tools/fx/cmd/set-relay) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Actuates the state of an external relay by writing a single byte to \|tty\|. |
| [setup-go](https://fuchsia.dev/reference/tools/fx/cmd/setup-go) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Set up the checkout for Go development. |
| [setup-jj](https://fuchsia.dev/reference/tools/fx/cmd/setup-jj) | [Developer tools](https://fuchsia.dev/reference/tools/fx/developer_tools/README) | sets up the jj tool (if installed) for use with Fuchsia. |
| [setup-usb-ethernet](https://fuchsia.dev/reference/tools/fx/cmd/setup-usb-ethernet) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Setup udev rules for USB CDC ethernet |
| [show-package](https://fuchsia.dev/reference/tools/fx/cmd/show-package) | [Software delivery](https://fuchsia.dev/reference/tools/fx/software_delivery/README) | lists package contents |
| [shush](https://fuchsia.dev/reference/tools/fx/cmd/shush) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | silence rust lints with allows or compiler suggested fixes |
| [size-check](https://fuchsia.dev/reference/tools/fx/cmd/size-check) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Convenience wrapper for running the product size checker. |
| [smoke-test](https://fuchsia.dev/reference/tools/fx/cmd/smoke-test) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | Runs a Python helper script inside the fx environment |
| [smoke-test](https://fuchsia.dev/reference/tools/fx/cmd/smoke-test) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | Finds and runs tests affected by the current change. |
| [snapshot](https://fuchsia.dev/reference/tools/fx/cmd/snapshot) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Obtain and parse a snapshot from a connected target. |
| [sniff](https://fuchsia.dev/reference/tools/fx/cmd/sniff) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Fuchsia packet capture and display tool |
| [sniff.py](https://fuchsia.dev/reference/tools/fx/cmd/sniff.py) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [sync-from-stem](https://fuchsia.dev/reference/tools/fx/cmd/sync-from-stem) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | sync integration and deps to a state matching fuchsia.git state |
| [system-status](https://fuchsia.dev/reference/tools/fx/cmd/system-status) | [Device management](https://fuchsia.dev/reference/tools/fx/device_management/README) | Get a summary of system status |
| [test-category](https://fuchsia.dev/reference/tools/fx/cmd/test-category) | [Testing](https://fuchsia.dev/reference/tools/fx/testing/README) | Query and view configured test category information. |
| [test-stats](https://fuchsia.dev/reference/tools/fx/cmd/test-stats) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | Query and calculate test stats. |
| [test-stats.py](https://fuchsia.dev/reference/tools/fx/cmd/test-stats.py) | [Test](https://fuchsia.dev/reference/tools/fx/test/README) | Query and calculate test stats. |
| [triage](https://fuchsia.dev/reference/tools/fx/cmd/triage) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | generate a report of error conditions, with Google-specific rules. |
| [update-3p-owners](https://fuchsia.dev/reference/tools/fx/cmd/update-3p-owners) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | updates OWNERS files for third_party dependencies |
| [update-bazel-vendor-dir](https://fuchsia.dev/reference/tools/fx/cmd/update-bazel-vendor-dir) | [Build](https://fuchsia.dev/reference/tools/fx/build/README) | Update the Bazel vendor directory to include all necessary Bazel deps. |
| [update-rustc-third-party](https://fuchsia.dev/reference/tools/fx/cmd/update-rustc-third-party) | [Source tree](https://fuchsia.dev/reference/tools/fx/source_tree/README) | updates rustc_library and rustc_binary third_party dependencies |
| [zbi_json_to_d3js.py](https://fuchsia.dev/reference/tools/fx/cmd/zbi_json_to_d3js.py) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) |   |
| [zedmon](https://fuchsia.dev/reference/tools/fx/cmd/zedmon) | [Other](https://fuchsia.dev/reference/tools/fx/other/README) | run zedmon client |
| [zxdb](https://fuchsia.dev/reference/tools/fx/cmd/zxdb) | [Run, inspect and debug](https://fuchsia.dev/reference/tools/fx/run_inspect_and_debug/README) | Deprecated, please use "ffx debug connect" |