Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ahmadtawakol/67f5e33a806b7cc9148b0fb6bfa63abe to your computer and use it in GitHub Desktop.
Save ahmadtawakol/67f5e33a806b7cc9148b0fb6bfa63abe to your computer and use it in GitHub Desktop.
Remove and reinstall all cordova plugins
#This one-liner removes all cordova installed plugins and then adds them again.
#Note: If you are not using Ionic, change 'ionic cordova plugin' to 'cordova plugin'
#! /bin/bash
cordova plugin list | cut -d ' ' -f 1 | while read plugin; do ionic cordova plugin rm $plugin && ionic cordova plugin add $plugin; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment