Add command to generate metadata