- Make sure you have the required WP_CLI::add_comand() line configured in your plugin/theme
- Install and configure the WP CLI app:
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
mv wp-cli.phar /var/www/vhosts/yoursidefolder/wp-cli.phar - Test command. Eg.: /var/www/vhosts/yoursitefolder/usr/bin/php /var/www/vhosts/yoursidefolder/wp-cli.phar –path=/var/www/vhosts/yoursidefolder/httpdocs <action_name> <action_method>
- Add the cron job to your server’s config
Category: Uncategorized
-
How to configure WP CLI cron job in Plesk / Hostpress.de
-
Node.js update package.json to the latest versions of the dependencies
Using npx:
npx npm-check-updates -u npm installUsing npm-check-updates package:
npm i -g npm-check-updates ncu -u npm install -
SASS syntax
Basic watch
sass --watch a.scss:a.cssWatch and output minified
sass --watch a.scss:a.css --style compressedRemove source map
sass --no-source-map --watch style.scss:style.css