ng g c new-component --module app //Or if you are in an other directory then ng g c component-name --module ../