Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davepullig/21e03dba4db37c74bfcc9d9a085d409b to your computer and use it in GitHub Desktop.
Save davepullig/21e03dba4db37c74bfcc9d9a085d409b to your computer and use it in GitHub Desktop.
Create a snippet to add to composer.json for existing WordPress plugins; useful when importing sites - you'll need wpackagist setup. Any plugins not in the w.org repo will fail, if you don't exclude them as per gf. You'll need to remove the trailing comma from the last line.
wp plugin list --field=name | grep -wv "gravityforms\|sdwd-lms" | xargs -i echo "\"wpackagist-plugin/{}\" : \"@stable\","
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment