You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# install all active plugins basd on the `active_plugins` option value
wp option get active_plugins --format=json | php -r "foreach( json_decode( fgets(STDIN) ) as \$value ) { \$p=explode('/',\$value);fwrite(STDOUT, (is_array( \$p ) ? \$p[0] : \$p).PHP_EOL); }" | xargs -n1 bash -c '
VERSION=$(wp plugin get $0 --field=version --quiet)
echo "Trying to install ${0}"
if [ ${#VERSION} -gt 0 ]
then
echo "Specifying version ${VERSION}"
wp plugin install $0 --version=${VERSION}
else
echo "No version number found"
wp plugin install $0
fi'
Only works for plugins on wordpress.org and plugins for which we have .zip download links, so "download" is still kinda better. What if we check for a local version or get a better command than scp in the download?
No description provided.
The text was updated successfully, but these errors were encountered: