How do I perform a smart update via the command line?