add info sub-command (prints package metadata as JSON)