blob: 16897822b41ea8d5cae31921f350afa4c358c01e [file] [view]
# fx use
re-use a previous build directory set up by `fx set`
```none
usage: fx use DIR
or: fx --dir DIR use
or: fx use
Switches further `fx` commands to using a different build directory.
This only works if `fx --dir DIR set ...` succeeded previously
(and DIR has not been removed since). The next `fx build` or other
such command will now refer to DIR. The previous build directory is
left in place, so you can switch back again with `fx use` later.
fx use without arguments will list the available build directories, naming
the current active build directory (if any).
fx use with `ffx.ui.mode = tui` set will prompt you to choose a build director.
ffx.ui.mode can be set using `ffx config set ffx.ui.mode tui`
The UI mode for just fx use can be set with e.g.
`ffx config set ffx.ui.overrides.fx-use text`
```
[use source code](https://cs.opensource.google/fuchsia/fuchsia/+/main:tools/devshell/use)