The module command only works for local installs. There is no way to install a module on a remote server.
James R. Perkins
There is still the same behaviour in the fourth year after discussion starts :-/ Are there any plans to add this "feature" in the near future? Does a bug ticket exist?
I tried with the latest WildFly 15.0.1.Final.