启动更新服务器并连接到正在运行的紫红色设备
usage: fx serve [-v] [-l host[:port]] [-c version] [--no-device] [--name NAME]
-l port port that "fx serve" will listen on
--no-device Do not register the repository with a specific device.
--name NAME Name the generated update source config NAME.
--[no-]persist enable or disable persistence of repository metadata. Disabled
by default.
-v verbose mode, shows info and debug messages from "ffx repository serve"
-C|--clean clean the package repository first. This flag is only
valid if the incremental package publishing is enabled.
--foreground run the repository server in the foreground (the default).
--background run the repository server in the background.
This command supports:
- incremental package publishing. If enabled, it will auto-publish packages as they
are created or modified.
To enable incremental package serving, run "fx --enable=incremental serve ..."