CLI - check if operation was successful before getting results