import {Command} from "commander"; const commander = new Command(); // now use the local instance as you would use the global one...