for repo in $(curl -s --header "PRIVATE-TOKEN: your_private_token" "https://<your-host>/api/v4/groups/<group_id>" | jq ".projects[].ssh_url_to_repo" | tr -d '"'); do git clone $repo; done;