fix(cli): load modules only on demand (#4295)