Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipeplets/eaf0a58b38bdf0c8baf2039d31adb2db to your computer and use it in GitHub Desktop.
Save felipeplets/eaf0a58b38bdf0c8baf2039d31adb2db to your computer and use it in GitHub Desktop.
Shell script using GitHub CLI (gh) to download multiple repositories and run npm ci
USER=githubuser; PREFIX=secret-; REPOS=('proj1' 'proj2' 'proj3') && for REPO in ${REPOS}; do gh repo clone ${USER}/${PREFIX}${REPO} && cd ${PREFIX}${REPO} && npm ci && cd ..; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment