Change require('cli/main') to require('cli')

usage: `require('lib/cli')(args)` where `args` is typically `argv[2..]`.