Adding reset cli functionality

As discussed in #1596, this PR adds functionality to reset dependencies by removing them, clearing cache and then updating dependencies. 

Feedback please? :smile: