chore(cli): Fixed issues with the cli tool and requiring ES6