fx serve

start the update server and attach to a running fuchsia device

usage: fx serve [-v] [-l host[:port]] [-c version] [--no-device] [--name NAME] -l port port that "fx serve" will listen on --address address 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 ..." 

serve source code