pub fn export_commands_json<P: AsRef<Path>>(path: P) -> Result<()>
Export all command metadata to a JSON file at the given path.