When commandline runs on a seperate (remote) machine, you need to make sure that the custom components are shared across the project. To put the custom component in the folder you configured in the command line. And make sure that folder is accessible to the command line.