Build Object Repository with command line tool

Is there a way to generate the lib for “object repository” over commandline to include it to a build pipeline?
Has anyone experince with this?