Multi-user app from commandline

I’ve seen several discussions on this forum that for a multi-user app, one should pn.serve a function that returns an object, to essentially avoid sending the same object to all users. Something like:

import panel as pn
from custom_module import app

def get_app():
  return app()

pn.serve(get_app)

What is the (or is there a) command-line equivalent of this using the panel serve command?