This is stand alone CLI source package which can be port for any platform. Just download the pacakge and cross compile for your platform. Have tested in embedded linux platform and RTOS/NonRTOS based platform
NOTE : Credit to FreeRTOS. I have took the freeRTOS CLI codes and modified for scalable to any platform.