add command to set doc metadata