{"id":5582,"date":"2015-09-15T16:31:49","date_gmt":"2015-09-15T07:31:49","guid":{"rendered":"http:\/\/www.vincentina.net\/?p=5582"},"modified":"2020-02-23T21:09:03","modified_gmt":"2020-02-23T12:09:03","slug":"automatic-nightly-wordpress-updates-check-with-wp-cli-plugins","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=5582","title":{"rendered":"Automatic nightly WordPress updates CHECK with WP-CLI plugins"},"content":{"rendered":"<p>Hello, I&#8217;m Takeken.<\/p>\n<p>I&#8217;m pretty hardly at a mail check on the morning, but this adds one to WordPress plugins WP-CLI !!<\/p>\n<p>WP-CLI is very nice plugins that It&#8217;s checked WordPress Core, WordPress Theme, WordPress plugins , It is a very good WordPress plugins for me who do not use the Auto-Update system.<\/p>\n<p>good.<\/p>\n<p>Well, let see to how to install.<\/p>\n<p>References:<\/p>\n<p><a href=\"http:\/\/wp-cli.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/wp-cli.org\/<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ncurl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar\r\nchmod +x wp-cli.phar\r\nsudo mv wp-cli.phar \/usr\/local\/bin\/wp\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>All systems go ?<\/p>\n<p><strong><\/strong><br \/>\nOk. And so, let&#8217;s create a script.<\/p>\n<p>vim wpcheck.sh<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#!\/bin\/sh\r\n\r\nMAIL_TO=&quot;YOUR MAIL&quot;\r\nHOST_NAME=&quot;YOUR HOSTNAME&quot;\r\n\r\nVersion=`\/usr\/local\/bin\/wp core check-update --path=\/pathto\/wordpress`\r\nPlugins=`\/usr\/local\/bin\/wp plugin status --path=\/pathto\/wordpress`\r\nTheme=`\/usr\/local\/bin\/wp theme status --path=\/pathto\/wordpress`\r\n\r\necho &quot;$Version $Plugins $Theme&quot; | mail -s &quot;Wordpress Plugins CHECK $HOST_NAME&quot; $MAIL_TO\r\n<\/pre>\n<p>Are you ready ?<\/p>\n<p>Execute the command:<br \/>\nsh wpcheck.sh<\/p>\n<p>Such an email comes.. Maybe.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nSubjects: WordPress Plugins CHECK ******\r\n\r\nSuccess: WordPress is at the latest version. 4 installed plugins:\r\n  A moji-changer       1.0.0\r\n  I akismet            3.1.3\r\n  I hello              1.6\r\n  I wp-multibyte-patch 2.4\r\n\r\nLegend: A = Active, I = Inactive 3 installed themes:\r\n  A twentyfifteen  1.3\r\n  I twentyfourteen 1.5\r\n  I twentythirteen 1.6\r\n\r\nLegend: A = Active, I = Inactive\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Have you received text?<\/p>\n<p>You can use it if you WordPress Update does at myself want.<br \/>\nIf you should need any help, just let it use.<\/p>\n<p>Say now, I remember!<\/p>\n<p>Let&#8217;s enroll in cron.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ncrontab -e\r\n\r\nExam:\r\n\r\n# wordpress plugins check\r\n0 5 * * * \/bin\/sh \/home\/takeken\/wordpress_update_check.sh\r\n\r\n<\/pre>\n<p>it&#8217;ll result come to you. receive at five o&#8217;clock.<\/p>\n<p>References:<\/p>\n<p>http:\/\/wp-cli.org\/<\/p>\n<p>https:\/\/github.com\/wp-cli\/wp-cli<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=5582\" data-text=\"Automatic nightly WordPress updates CHECK with WP-CLI plugins\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Hello, I&#8217;m Takeken. I&#8217;m pretty hardly at a mail check on the morning, but this adds one to WordPre &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=5582\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Automatic nightly WordPress updates CHECK with WP-CLI plugins&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-5582","post","type-post","status-publish","format-standard","hentry","category-english"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5582"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/5582\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}