Launch Flutter apps from the terminal

Rubén Serrano
FuchsiaOS Dojo
Published in
1 min readFeb 15, 2019

In a device with FuchsiaOS that can render the UI (this won’t work on QEMU):

  1. Tap Alt + Esc to change to a terminal
  2. Run the following command
$ run fuchsia-pkg://fuchsia.com/basemgr#meta/basemgr.cmx --base_shell=fuchsia-pkg://fuchsia.com/mine_digger#meta/mine_digger.cmx

3. Tap Alt + Esc again to display the launched app

4. Optionally you can use Ctrl + C back in the terminal to close the app

Notice that there isn’t any space between the two hyphens and base_shell, and between the fuchsia-pkg that Medium formats in two lines.

This example uses the mine_digger app the FuchsiaOS, but you can call any Flutter app in the system, provided you replace “mine_digger” by the name of the app as they appear in /examples/topaz.

Dash approves

--

--