$apply command for update
Merge pull request #1206 from brandonbloom/apply

$apply directive for update