cli: use new API calls instead of static option data