On macOS for downloading all repos for an organization:
$ brew install jq
- Create personal access token on github
$ curl -s https://<your token>:@api.github.com/orgs/<your org>/repos\?per_page\=200 | jq ".[].ssh_url" | xargs -n 1 git clone --recursive
ref: https://gist.github.com/caniszczyk/3856584#gistcomment-2653802