Extract cli.build() method
Support 'build' key on client-side
Add counter example