complete cli.js