[cli] Add command 'list' and test commands 'sync' and 'desync'