The ffx component
commands can retrieve various types of information about Fuchsia components on a device.
The ffx component list
command prints the list and hierarchy of all Fuchsia components (including v1 and v2 components) available on your Fuchsia device. This command can help you answer the following questions:
The ffx component show
command prints the details of a Fuchsia component on the device. This command can help you answer the following questions (and more):
To view the list of components available on your Fuchsia device, run the following command:
ffx component list
This command prints output similar to the following:
$ tools/ffx component list / /bootstrap /bootstrap/archivist /bootstrap/base_resolver /bootstrap/console /bootstrap/console-launcher /bootstrap/cr50_agent /bootstrap/decompressor /bootstrap/device_name_provider /bootstrap/driver_index /bootstrap/driver_manager ... /core/wlancfg /core/wlandevicemonitor /core/wlanstack /startup
To view the details of a specific component on your Fuchsia device, run the following command:
Note: To see all available component monikers on the device, run ffx component list
.
ffx component show <COMPONENT>
Replace COMPONENT
with a full or partial moniker of a Fuchsia component. You may also replace COMPONENT
with a full or partial component URL. If there are multiple matches, the command prints the details of all the matching components.
The example below prints the details of the brightness_manager
component:
$ ffx component show brightness_manager Moniker: /core/brightness_manager URL: fuchsia-pkg://fuchsia.com/brightness_manager#meta/brightness_manager.cm Type: CML static component Component State: Resolved Instance ID: 8285f9d54645ea6baa7fd7b7905c7ae89a9daf8d5172be43b2587b166fd021af Incoming Capabilities: data dev fuchsia.logger.LogSink pkg Exposed Capabilities: fuchsia.ui.brightness.Control Merkle root: a3b35183fbb3e49c450840f73043ee355d9e0d3673cc009c681f405816ea864e Execution State: Running Start reason: '/core/session-manager/session:session/workstation_session/login_shell/ermine_shell' requested capability 'fuchsia.ui.brightness.Control' Running since: 2022-04-11 20:54:05.139320126 UTC Job ID: 61155 Process ID: 61188 Outgoing Capabilities: fuchsia.ui.brightness.Control