The WebUI and CLI are slowly being ported to use the REST API. With each release it gets closer and closer. Once complete, the goal is for all three methods to have feature parity.
Does the CLI and WebUI use the REST API and vice versa? Will they always be in sync with each other? 
FAQ: Does the CLI and WebUI use the REST API?