cli build sampes with and w/out diagnostics