what is the best way to migrate all these projects to gitlab.com?

I currently have a linux server with self-managed GitLab 13.12.5 with 647 projects

what is the best way to migrate all these projects to gitlab.com?

The only way I found was to manually migrate one project at a time and it was hard work.