Need to support Netconf for existing CLI commands

netconf-console is a good debugging tool so I suggest that you get it working as the next step. There are a number of resources in this forum to help you get started. E.g. Error using netconf-console or netconf-console-tcp.