update command to accept dictionary of context variables