blob: 7db2be70e0ee8dabef20e109d9e03db65a3f09e7 [file] [view]
# fx run
build Fuchsia and push to device
```none
usage: fx run [--no-build|[NINJA OPTION,...]] [--no-pkg-check] [--no-kill] [--no-restart-session] TARGET [ARG,...]
Build ALL targets.
Execute 'fx shell killall TARGET'.
Execute 'fx shell run TARGET [ARGS].
--no-build do not execute a build
--no-pkg-check do not check for a package server
--no-kill do not kill all instances of matching components
--no-restart-session do not perform a sessionctl restart_session
NINJA OPTION
The following ninja options are passed to the build if invoked:
-C, -f, -j, -k, -l, -t, -w.
See fx ninja --help for more information on these flags.
TARGET is any form that 'run' on the target device accepts, as such it may
be a package url, or a non-ambiguous short-form.
Example:
$ fx set core.x64 --with //examples
$ fx serve-updates
$ fx run fuchsia-pkg://fuchsia.com/hello-world#meta/hello-world-dart.cmx
ARG is passed to target without interpretation. All arguments after TARGET
are passed to TARGET.
```
[run source code](https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/devshell/run)