blob: 00a86f29203af063d65e2bb64e517a56da0110f5 [file] [log] [blame] [view]
# fx run-script
Run a custom combination of commands, able to take advantage of `fx -i` (iterative mode)
```none
usage: fx [-i] run-script "<command>"
`<command>` can be any command that would be valid as a single line at a shell prompt.
For example,
- Arbitrary shell commands: `fx -i run-script "ls | grep fuchsia"`
- Fuchsia commands: `fx -i run-script "ffx emu stop && fx build && ffx emu start"`
- Independent commands: `fx -i run-script "ls; find . -name test.rs"`
Passing a regular shell script is not supported.
```
[run-script source code](https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/devshell/run-script)