Refactor CLI to use the API provided by commander