github
    
  
    
         gitlab
    
  
    
         sourcehut
    
  
    
         git
    
  
  
  
  I'm switching most code off Github to GitLab and Sourcehut. To do so I installed the Github cli, authenticated then ran:
gh repo list <username> --limit 1000 | awk '{NF=1}1' | while read in; do gh repo archive -y "$in"; done
From: https://stackoverflow.com/questions/62170138/how-can-i-batch-archive-all-github-repositories-in-my-account