cli: use the new get/set functions for labels