Use injector to handle cli and running