CLI now returns an int exit code, 0 on success, 1 if there was an error