{"id":2612,"date":"2022-05-10T19:21:40","date_gmt":"2022-05-10T10:21:40","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/?p=2612"},"modified":"2022-05-11T16:56:10","modified_gmt":"2022-05-11T07:56:10","slug":"wordpress-wp-cli","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2022\/05\/10\/wordpress-wp-cli\/","title":{"rendered":"WordPress\u3092\u30b3\u30de\u30f3\u30c9\u3067\u64cd\u308b\uff1f “wp-cli”\u3067\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u3066\u307f\u305f"},"content":{"rendered":"\n

WordPress\u3068wp-cli\u306b\u3064\u3044\u3066<\/h2>\n\n\n

CMS\u69cb\u7bc9\u306b\u4f7f\u308f\u308c\u308b\u4ee3\u8868\u4f8b\u3068\u3057\u3066\u3001\u3088\u304fWordPress\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002<\/p><\/p>\n\n\n

\u5b9f\u969b\u3001\u591a\u304f\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306b\u3066WordPress\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u3068\u8a00\u3046\u8abf\u67fb\u7d50\u679c\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n

\n

WordPress now powers over 1\/3rd of the top 10 million sites on the web according to W3Techs<\/p>\n

https:\/\/wordpress.org\/news\/2019\/03\/one-third-of-the-web\/<\/a><\/p>\n<\/blockquote>\n\n\n

\u3054\u89a7\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u306e\u30d6\u30ed\u30b0\u3082WordPress\u306e\u4ed5\u7d44\u307f\u3092\u5165\u308c\u3066\u304a\u308a\u3001DWS\u306b\u304a\u3044\u3066\u3082WordPress\u306f\u99b4\u67d3\u307f\u6df1\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n

\u4e00\u65b9\u3067\u3001WordPress\u30b5\u30a4\u30c8\u3092\u30db\u30b9\u30c8\u3057\u3066\u304f\u308c\u308bSaaS\u306a\u3069\u3092\u4f7f\u308f\u305a\u306bWordPress\u30b5\u30a4\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u305f\u3044\u3068\u601d\u3063\u305f\u6642\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u306e\u30ac\u30a4\u30c0\u30f3\u30b9\u306b\u6cbf\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304b\u3089\u3001\u521d\u671f\u7acb\u3061\u4e0a\u3052\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u307e\u3067\u3092\u624b\u52d5\u3067\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n

\u3082\u3061\u308d\u3093\u516c\u5f0f\u306e\u8cc7\u6599\u306f\u5145\u5b9f\u3057\u3066\u304a\u308a\u3001\u30ac\u30a4\u30c0\u30f3\u30b9\u901a\u308a\u306b\u624b\u9806\u3092\u8e0f\u3081\u3070\u5b8c\u6210\u3057\u307e\u3059\u304c\u3001\u305d\u306e\u624b\u9806\u306e\u6570\u306f\u6848\u5916\u591a\u304f\u3001\u624b\u52d5\u3086\u3048\u306e\u30df\u30b9\u304c\u751f\u307e\u308c\u3084\u3059\u3044\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n

\u4e00\u65b9\u3067\u3001WordPress\u306e\u5404\u7ba1\u7406\u64cd\u4f5c\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30d9\u30fc\u30b9\u3067\u64cd\u4f5c\u3067\u304d\u308bwp-cli<\/code>\u3068\u3044\u3046\u30c4\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n

wp-cli<\/code>\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u898b\u308b\u3068<\/p>\n\n\n

\n

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser.\n\n

https:\/\/wp-cli.org<\/a><\/p>\n<\/blockquote>\n\n\n

\u3068\u3042\u308a\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff08https:\/\/developer.wordpress.org\/cli\/commands\/<\/a>\uff09\u3092\u898b\u3066\u3082\u3001WordPress\u306e\u7ba1\u7406\u696d\u52d9\u306e\u591a\u304f\u3092\u3053\u306ewp-cli<\/code>\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u73fe\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n

\u305d\u3053\u3067\u3001\u4eca\u56de\u3001\u3053\u306ewp-cli<\/code>\u3092\u4f7f\u3063\u3066WordPress\u30b5\u30a4\u30c8\u306e\u7acb\u3061\u4e0a\u3052\u307e\u3067\u3092\u5b9f\u8df5\u3057\u3066\u307f\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u5185\u5bb9\u3092\u30ec\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n

\u691c\u8a3c\u74b0\u5883\u3068\u5b9f\u65bd\u30b7\u30ca\u30ea\u30aa<\/h2>\n\n\n

\u691c\u8a3c\u74b0\u5883<\/h3>\n\n\n

\u691c\u8a3c\u6a5f\u306b\u304a\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306aLAMP\u69cb\u6210\u304c\u69cb\u7bc9\u6e08\u307f\u3067\u3042\u308b\u72b6\u6cc1\u3067\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n

OS\u30fb\u30fb\u30fbAmazon Linux 2<\/p>\n\n\n

\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u30fb\u30fb\u30fbApache 2.4.52<\/p>\n\n\n

\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30fb\u30fb\u30fbMySQL 8.0.28<\/p>\n\n\n

PHP\u30fb\u30fb\u30fb8.0.16<\/p>\n\n\n

\u305d\u3057\u3066\u3001<\/p>\n\n\n

https:\/\/wp-cli.org<\/a><\/p>\n\n\n

\u3067\u306e\u30ac\u30a4\u30c0\u30f3\u30b9\u306b\u6cbf\u3063\u3066 wp-cli<\/code>\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3067wp<\/code>\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u308b\u72b6\u614b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n

\u30b7\u30ca\u30ea\u30aa<\/h3>\n\n\n

\u4e0a\u8a18\u306e\u74b0\u5883\u3092\u8e0f\u307e\u3048\u3066\u3001<\/p>\n\n\n

Apache\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u969b\u306bDocumentRoot\u3068\u306a\u3063\u305f<\/p>\n\n\n

\/var\/www\/html<\/code>\u306b\u305d\u306e\u307e\u307eWordPress\u3092\u7acb\u3061\u4e0a\u3052\u3001\u30b5\u30a4\u30c8\u304c\u8868\u793a\u3067\u304d\u308b\u3068\u3053\u308d\u307e\u3067\u3092\u76ee\u6307\u3057\u307e\u3059\u3002<\/p>\n\n\n

\u64cd\u4f5c1\uff1aWordPress\u30d5\u30a1\u30a4\u30eb\u7fa4\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h2>\n\n\n

WordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u307e\u305a\u3001\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u7fa4\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n

\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u3057\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0a\u3067wp core download<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n

[root@ip-10-0-13-49 html]# pwd\n\/var\/www\/html\n[root@ip-10-0-13-49 html]# wp core download\nDownloading WordPress 5.9.2 (en_US)...\nmd5 hash verified: b5e9c3b8dfd767d55c3797c2eae0f57d\nSuccess: WordPress downloaded.\n<\/code><\/pre>\n\n\n

\u305d\u3046\u3059\u308b\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306bWordPress\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u304c\u53d6\u5f97\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n

[root@ip-10-0-13-49 html]# ls\nindex.php    phpinfo.php  wp-activate.php  wp-blog-header.php    wp-config-sample.php  wp-cron.php  wp-links-opml.php  wp-login.php  wp-settings.php  wp-trackback.php\nlicense.txt  readme.html  wp-admin         wp-comments-post.php  wp-content            wp-includes  wp-load.php        wp-mail.php   wp-signup.php    xmlrpc.php\n[root@ip-10-0-13-49 html]#\n<\/code><\/pre>\n\n\n

\u3053\u306e\u72b6\u614b\u3067\u30d6\u30e9\u30a6\u30b6\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306a\u753b\u9762\u8868\u793a\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n

\"\"<\/a><\/p>\n\n

\u3061\u3087\u3046\u3069\u3053\u308c\u306f<\/p>\n\n\n

https:\/\/ja.wordpress.org\/download\/<\/a><\/p>\n\n\n

\u304b\u3089Zip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304d\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u5c55\u958b\u3057\u305f\u306e\u3068\u540c\u3058\u72b6\u6cc1\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n

\u624b\u52d5\u3067\u884c\u3046\u969b\u306e<\/p>\n\n\n