Repo ninja command line tool was removed from MidPoint 3.7. It's replaced by new tool called just ninja. See this for details.
Repo Ninja is a tool designated to help MidPoint administrators with repository initialization and validation. It also allows to export and import repository data as XML objects even when the application is not running.