Added list function in CLI