{"id":27684,"date":"2020-04-29T00:19:37","date_gmt":"2020-04-29T07:19:37","guid":{"rendered":"https:\/\/kinsta.com\/?p=4356"},"modified":"2023-10-18T20:05:35","modified_gmt":"2023-10-18T11:05:35","slug":"wp-cli","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/","title":{"rendered":"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406"},"content":{"rendered":"<p>\u904e\u53bb\u306eWordPress\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u3066\u69cb\u7bc9\u3055\u308c\u3001\u305d\u306e\u6700\u3082\u62bd\u8c61\u7684\u306a\u30b7\u30b9\u30c6\u30e0\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306ePHP\u3067\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3053\u3053\u6570\u5e74\u3067\u3001\u3053\u308c\u306f\u826f\u3044\u65b9\u5411\u306b\u5909\u5316\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u5358\u4f53\u30c6\u30b9\u30c8\u3092\u306f\u3058\u3081CSS\u306e\u524d\u51e6\u7406\u3084\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u306a\u3069\u3001\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u4f7f\u3044\u3084\u3059\u3044\u30a2\u30bb\u30c3\u30c8\u304c\u6b21\u3005\u3068\u5c0e\u5165\u3055\u308c\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001\u79c1\u306e\u304a\u6c17\u306b\u5165\u308a\u306e\u4e00\u3064\u3067\u3042\u308b<a href=\"https:\/\/wp-cli.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP-CLI<\/a>\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n<div  class=\"featured-snippet\" id=\"featuredSnippet\">\n    <div class=\"featured-snippet__content\">\n        <h2>WP-CLI\u3068\u306f\uff1f<\/h2>\n        <div><p>WP-CLI\u306fWordPress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u3088\u304f\u3042\u308b\uff08\u53c8\u306f\u307e\u308c\u306a\uff09\u4f5c\u696d\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u958b\u767a\u8005\u5411\u3051\u306e<strong>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb<\/strong>\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u3001\u6295\u7a3f\u3001\u30ab\u30c6\u30b4\u30ea\u306e\u8ffd\u52a0\u307e\u305f\u306f\u524a\u9664\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u633f\u5165\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u3067\u306e\u691c\u7d22\u3068\u7f6e\u63db\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u7570\u5e38\u306e\u51e6\u7406\u306a\u3069\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<\/div>\n    <\/div>\n    <div class=\"featured-snippet__footer\">\n        <div class=\"arrow-down\"><\/div>\n        <div class=\"featured-snippet__footer--content row nocol middle-xs between-xs reverse\">\n            <div style=\"margin-left: auto; position: relative; top: -1px\" class=\"row nocol middle-xs\">\n                <div class=\"color--mediumGray\" style=\"font-size: 14px; vertical-align: middle;\">\n                    <svg  class=\"icon icon--logo display--block\" aria-hidden=\"true\" focusable=\"false\"><use xlink:href=\"https:\/\/kinsta.com\/jp\/wp-content\/themes\/kinsta\/dist\/sprite.svg?v=e8af2143e3b8bceb5561b327e81ec085#logo\" \/><\/svg>                <\/div>\n                <div class=\"text--bold color--mediumGray\" style=\"padding-left: 3px;\">Support<\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<p>WP-CLI\u306f\u300110\u5e74\u524d\u304b\u3089\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308a\u30012003\u5e74\u4ee5\u964d\u3001\u4e3b\u306b<a href=\"https:\/\/profiles.wordpress.org\/danielbachhuber\" target=\"_blank\" rel=\"noopener noreferrer\">Daniel Bachhuber<\/a>\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002WP-CLI\u306e\u4e3b\u306a\u76ee\u6a19\u306f\u3001<strong>WordPress\u958b\u767a\u8005\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306e\u9ad8\u901f\u5316<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3001\u9577\u5e74\u306b\u308f\u305f\u3063\u3066\u3001\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u3055\u3089\u306b\u6210\u9577\u3057\u3066\u304d\u307e\u3057\u305f\uff01 \u73fe\u5728\u3067\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/bedrock-trellis\/\" target=\"_blank\" rel=\"noopener noreferrer\">Trellis\u3084Bedrock<\/a>\u306a\u3069\u306e\u4ed6\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8981\u4ef6\u306b\u3082\u306a\u3063\u3066\u3044\u307e\u3059\u30022017\u5e741\u6708\u306e\u6642\u70b9\u3067\u3001WP-CLI\u306f\u6b63\u5f0f\u306bWordPress.org\u306b\u79fb\u52d5\u3057\u3001\u73fe\u5728\u306fAlain Schlesser\u306b\u3088\u3063\u3066<a href=\"https:\/\/make.wordpress.org\/cli\/2017\/04\/03\/new-co-maintainer-alain-thanks-2017-sponsors\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5171\u540c\u7ba1\u7406<\/a>\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/make.wordpress.org\/cli\/2018\/08\/08\/wp-cli-v2-0-0-release-notes\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP-CLI v2<\/a>\u306f2018\u5e748\u67088\u65e5\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u305f\u3081\u3001\u305d\u306e\u5909\u66f4\u70b9\u3068\u65b0\u6a5f\u80fd\u306b\u3064\u3044\u3066\u3082\u8aac\u660e\u3057\u307e\u3059\u3002Kinsta\u306e\u304a\u5ba2\u69d8\u3067\u3042\u308b\u5834\u5408\u3001<strong>\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067WP-CLI v2.0.1\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059<\/strong>\u3002\u958b\u59cb\u3059\u308b\u306b\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/how-to-use-ssh\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b5\u30fc\u30d0\u30fc\u306bSSH\u3067\u63a5\u7d9a\u3059\u308b<\/a>\u3060\u3051\u3067\u3059\u3002SSH\u30a2\u30af\u30bb\u30b9\u306f\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d0\u30fc\u30d7\u30e9\u30f3\u3067\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u307e\u3059\u3002\uff08SSH\u3067\u306e\u63a5\u7d9a\u304c\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001SSH\u306e\u300c<a href=\"https:\/\/kinsta.com\/jp\/blog\/ssh-connection-refused\/\">\u63a5\u7d9a\u62d2\u5426<\/a>\u300d\u30a8\u30e9\u30fc\u3092\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002<\/p>\n<ul>\n<li><a href=\"#getting-wp-cli\">WP-CLI\u306e\u5165\u624b<\/a><\/li>\n<li><a href=\"#wp-cli-basics\">WP-CLI\u306e\u57fa\u672c<\/a><\/li>\n<li><a href=\"#wp-cli-commands\">WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u6982\u8981<\/a><\/li>\n<li><a href=\"#useful-examples\">\u4fbf\u5229\u306a\u5b9f\u65bd\u4f8b<\/a><\/li>\n<li><a href=\"#wp-cli-remotely\">WP-CLI\u306e\u30ea\u30e2\u30fc\u30c8\u3067\u306e\u4f7f\u7528<\/a><\/li>\n<li><a href=\"#using-bash-scripts\">Bash\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f7f\u7528<\/a><\/li>\n<\/ul>\n<h2 id=\"getting-wp-cli\">WP-CLI\u306e\u5165\u624b<\/h2>\n<p>WP-CLI v2.0.0\u306e\u6700\u5c0fPHP\u8981\u4ef6\u306f\u3001PHP 5.4\u306b\u5909\u308f\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u4e00\u6b69\u524d\u9032\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/php-versions\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306ePHP<\/a>\u3001\u3064\u307e\u308a5.6\u4ee5\u4e0a\u3092\u63a1\u7528\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u4e21\u65b9\u306e\u7406\u7531\u304b\u3089\u3001\u3059\u3079\u3066\u306eKinsta\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u306fPHP 7.2\u3067\u3059\u3002PHP 7.3\u304a\u3088\u30737.4\u3082\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<p>\u958b\u59cb\u3059\u308b\u306b\u306f\u3001WP-CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u975e\u5e38\u306b\u7c21\u5358\u306a\u30d7\u30ed\u30bb\u30b9\u3067\u3059\u3002 Linux\u304a\u3088\u3073OSX\u306e\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u6b21\u306e3\u3064\u306e<a href=\"https:\/\/kinsta.com\/blog\/linux-commands\/\">\u30b3\u30de\u30f3\u30c9<\/a>\u3092\u9806\u756a\u306b\u767a\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code>curl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar\nchmod +x wp-cli.phar\nsudo mv wp-cli.phar \/usr\/local\/bin\/wp\n<\/code><\/pre>\n<p>\u554f\u984c\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u307e\u305f\u306fWindows\u3092\u3054\u5229\u7528\u306e\u5834\u5408\u306f\u3001\u3053\u3061\u3089\u306e<a href=\"http:\/\/wp-cli.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u57fa\u672c\u7684\u306a\u624b\u9806<\/a>\u307e\u305f\u306f<a href=\"https:\/\/make.wordpress.org\/cli\/handbook\/installing\/#installing-on-windows\" target=\"_blank\" rel=\"noopener noreferrer\">\u305d\u306e\u4ed6\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5b8c\u4e86\u3057\u305f\u3089\u3001<code>wp --info<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u767a\u884c\u3059\u308b\u3068\u3001\u610f\u5473\u306e\u3042\u308b\u5fdc\u7b54\u304c\u8fd4\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306bWP-CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u3082\u3001\u30d7\u30ed\u30bb\u30b9\u306f\u540c\u3058\u3067\u3059\u3002Kinsta\u3092\u3054\u5229\u7528\u306e\u5834\u5408\u3001WP-CLI\u306f\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u73fe\u5728\u5b9f\u884c\u3057\u3066\u3044\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001 <code>wp cli version<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u767a\u884c\u3057\u3066\u7c21\u5358\u306b\u8abf\u3079\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 id=\"wp-cli-basics\">WP-CLI\u306e\u57fa\u672c<\/h2>\n<p><a href=\"https:\/\/kinsta.com\/blog\/ssh-commands\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089WordPress\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3053\u3068\u81ea\u4f53\u306f\u5f37\u529b\u306a\u3053\u3068\u3067\u3059<\/a>\u304c\u3001bash\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u7ba1\u7406\u3084\u30b9\u30d4\u30fc\u30c9\u30a2\u30c3\u30d7\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6570\u304c\u5897\u3048\u307e\u3059\u3002<\/p>\n<p>bash\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u5358\u4e00\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<code>bash install-and-setup.sh<\/code>\u3068\u5165\u529b\u3059\u308b\u3068\u3001\u6b21\u306e\u7d50\u679c\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li>WordPress\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/li>\n<li><a href=\"https:\/\/kinsta.com\/jp\/blog\/wp-config-php\/\" target=\"_blank\" rel=\"noopener noreferrer\"><code>wp-config.php<\/code><\/a>\u306e\u4f5c\u6210\u3068\u5185\u5bb9\u4f5c\u6210<\/li>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210<\/li>\n<li>WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>\u5fc5\u8981\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a2\u30af\u30c6\u30a3\u30d6\u5316<\/li>\n<li>\u30c6\u30fc\u30de\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a2\u30af\u30c6\u30a3\u30d6\u5316<\/li>\n<li>\u30c6\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3068\u8ffd\u52a0<\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u7528\u306e\u65b0\u3057\u3044\u30c6\u30b9\u30c8\u74b0\u5883\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u5b9f\u884c\u3059\u308b\u30b9\u30c6\u30c3\u30d7\u3067\u3059\u3002\u901a\u5e38\u3001\u7279\u306b\u8907\u6570\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u5c11\u306a\u304f\u3068\u30825\u301c10\u5206\u304b\u304b\u308a\u307e\u3059\u3002\u5358\u4e00\u306e\u30b3\u30de\u30f3\u30c9\u306e\u767a\u884c\u306f<strong>\u306f\u308b\u304b\u306b<\/strong>\u9ad8\u901f\u3067\u3059\u3002<\/p>\n<h2 id=\"wp-cli-commands\">WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u6982\u8981<\/h2>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u306e\u4f5c\u696d\u306b\u6163\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001WP-CLI\u306e\u7279\u5225\u306a\u3053\u3068\u306f\u4f55\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u306f<code>wp<\/code>\u3067\u59cb\u307e\u308a\u3001\u305d\u306e\u5f8c\u306b\u30b3\u30de\u30f3\u30c9\u81ea\u4f53\u3068\u30b5\u30d6\u30b3\u30de\u30f3\u30c9\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u5fc5\u9808\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u304c\u7d9a\u304d\u307e\u3059\u3002<\/p>\n<pre><code>wp command subcommand requiredparam --optionalparam --optionalparam2=value<\/code><\/pre>\n<p>\u5b9f\u969b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306e\u6a5f\u80fd\u3092\u898b\u3066\u307f\u308b\u3088\u3046\u306b\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/how-to-install-a-wordpress-theme\/\">\u30c6\u30fc\u30de\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>wp theme install twentyseventeen --activate<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001WordPress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b<a href=\"https:\/\/kinsta.com\/blog\/twenty-seventeen-theme\/\" target=\"_blank\" rel=\"noopener noreferrer\">Twenty Seventeen<\/a>\u30c6\u30fc\u30de\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>WP-CLI\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u73fe\u5728\u306eWordPress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u30b3\u30de\u30f3\u30c9\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5207\u308a\u66ff\u3048\u3066\u5225\u306eWordPress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u79fb\u52d5\u3059\u308b\u3068\u3001\u30b3\u30de\u30f3\u30c9\u304c\u305d\u306eWordPress\u306b\u9069\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2 id=\"useful-examples\">\u4fbf\u5229\u306a\u5b9f\u65bd\u4f8b<\/h2>\n<p>WP-CLI\u306e\u57fa\u672c\u306f\u4ee5\u4e0a\u3067\u3059\uff01\u5f8c\u7a0b\u8aac\u660e\u3059\u308b\u3082\u3063\u3068\u8a73\u7d30\u306a\u6a5f\u80fd\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3067\u958b\u59cb\u3057\u3066\u5fc5\u8981\u306a\u3053\u3068\u3092\u3059\u3079\u3066\u5b9f\u884c\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002 <a href=\"http:\/\/wp-cli.org\/commands\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b3\u30de\u30f3\u30c9\u30ea\u30b9\u30c8<\/a>\u3092\u898b\u3066\u3001\u305d\u306e\u3044\u304f\u3064\u304b\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001\u4fbf\u5229\u306a\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001SSH\u7d4c\u7531\u306eWP-CLI\u306e\u4f7f\u7528\u3068bash\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f7f\u7528\u306b\u79fb\u308a\u307e\u3059\u3002<\/p>\n<h3>WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u79c1\u306fWP-CLI\u3092\u983b\u7e41\u306b\u4f7f\u7528\u3057\u3066\u30c6\u30b9\u30c8\u74b0\u5883\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002\u305d\u306e\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001vanilla\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002 \u79c1\u304c\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306e\u30ea\u30b9\u30c8\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<pre><code>wp core download\nwp core config --dbname=mydbname --dbuser=mydbuser --dbpass=mydbpass --dbhost=localhost --dbprefix=whebfubwef_ --extra-php &lt;&lt;PHP\ndefine( 'WP_DEBUG', true );\ndefine( 'WP_DEBUG_LOG', true );\nPHP\nwp db create\nwp core install --url=http:\/\/siteurl.com --title=SiteTitle --admin_user=username --admin_password=mypassword --admin_email=my@email.com<\/code><\/pre>\n<p>\u3059\u3054\u3044\u3067\u3057\u3087\u3046\u3002\u6700\u521d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066WordPress\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u30022\u756a\u76ee\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30af\u30bb\u30b9\u3068\u8ffd\u52a0\u306ePHP\u3092\u542b\u3080\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3055\u308c\u307e\u3059\u3002\u8ffd\u52a0\u306e\u5b9a\u6570\u306b\u3088\u308a\u3001\u30c6\u30b9\u30c8\u7528\u306e\u30c7\u30d0\u30c3\u30b0\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u78ba\u5b9f\u306b\u30aa\u30f3\u306b\u306a\u308a\u307e\u3059\u3002WordPress\u306e\u30c7\u30d0\u30c3\u30b0\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306b<a href=\"https:\/\/kinsta.com\/blog\/wordpress-debug\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u8a73\u7d30\u306a\u30ac\u30a4\u30c9<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>3\u756a\u76ee\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-database\/\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/a>\u304c\u4f5c\u6210\u3055\u308c\uff08WP-CLI\u306f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30af\u30bb\u30b9\u60c5\u5831\u3092\u4f7f\u7528\u3057\u307e\u3059\uff09\u3001\u6700\u5f8c\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066WordPress\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>WordPress\u306e\u30b3\u30a2\u306e\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>WP-CLI\u3092\u4f7f\u7528\u3057\u3066<a href=\"https:\/\/kinsta.com\/blog\/reinstall-wordpress\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress\u306e\u30b3\u30a2\u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/a>\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30fc\u30de\u3068\u30d7\u30e9\u30b0\u30a4\u30f3\u306a\u3057\u3067\u306eWordPress\u30b3\u30a2\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<pre>wp core download --skip-content --force<\/pre>\n<h3>WordPress\u306eURL\u306e\u5909\u66f4<\/h3>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-change-url\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress\u306eURL\u3092\u5909\u66f4\u3059\u308b<\/a>\u7406\u7531\u306f\u3001\u30c9\u30e1\u30a4\u30f3\u306e\u5207\u308a\u66ff\u3048\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-subdomain\/\">\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3<\/a>\u3078\u306e\u79fb\u52d5\u3001www\u304b\u3089\u975ewww\u3078\u306e\u79fb\u884c\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5\u3059\u308b\u3053\u3068\u3001\u3055\u3089\u306bHTTP\u304b\u3089HTTPS\u3078\u306e\u79fb\u884c\u306a\u3069\u304c\u3042\u308a\u307e\u3059\u3002\u3044\u305a\u308c\u306b\u305b\u3088\u3001<code>wp option update<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u7c21\u5358\u306bURL\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\u4e0b\u8a18\u306f\u305d\u306e\u4e00\u4f8b\u3067\u3059\u3002<\/p>\n<pre>wp option update home 'http:\/\/example.com'\nwp option update siteurl 'http:\/\/example.com'<\/pre>\n<h3>\u73fe\u5728\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u305d\u306e\u8a73\u7d30\u306e\u4e00\u89a7<\/h3>\n<p>\u30b5\u30a4\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u73fe\u5728\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4e00\u89a7\uff08\u30ea\u30b9\u30c8\uff09\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001Schema and Yoast SEO\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\uff08\u30a2\u30af\u30c6\u30a3\u30d6\/\u975e\u30a2\u30af\u30c6\u30a3\u30d6\uff09\u3001\u5229\u7528\u53ef\u80fd\u306a\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306e\u6709\u7121\u3068\u3001\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u3044\u3046\u60c5\u5831\u3082\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre>wp plugin list<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2018\/01\/wp-cli-plugin-list.png\"><\/p>\n<h3>\u8907\u6570\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u8907\u6570\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u91cd\u306d\u308b\u3060\u3051\u3067\u3059\u30023\u3064\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3059\u308b\u4f8b\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre><code>wp plugin install advanced-custom-fields jetpack ninja-forms --activate<\/code><\/pre>\n<p><strong>\u30d7\u30e9\u30b0\u30a4\u30f3\u540d\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u5185\u306e\u540d\u524d\u306b\u7531\u6765\u3059\u308b<\/strong>\u3053\u3068\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002\u540d\u524d\u3092\u8abf\u3079\u308b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306f\u3001\u305d\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066URL\u3092\u78ba\u8a8d\u3059\u308b\u304b\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30ea\u30b9\u30c8\u3092\u8868\u793a\u3059\u308b<code>wp plugin search searchterm<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<figure style=\"width: 1677px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2016\/05\/wordpress-plugin-repository-name.png\" alt=\"WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u30ea\u30dd\u30b8\u30c8\u30ea\u306eURL\" width=\"1677\" height=\"1324\"><figcaption class=\"wp-caption-text\">WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u30ea\u30dd\u30b8\u30c8\u30ea\u306eURL<\/figcaption><\/figure>\n<p>\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001<code>--version<\/code>\u5c5e\u6027\u3092\u4f7f\u7528\u3057\u3066\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/download-older-versions-of-wordpress-plugins\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>wp plugin install wordpress-seo --version=4.8 --activate<\/pre>\n<p>\u3055\u3089\u306b\u3059\u3054\u3044\u3053\u3068\u306b\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3060\u3051\u3067\u306a\u304f\u3001\u30ea\u30e2\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u3082\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u5834\u5408\u3084\u30d7\u30ec\u30df\u30a2\u30e0\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u308c\u306f\u7279\u306b\u4fbf\u5229\u3067\u3057\u3087\u3046\u3002\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u30892\u3064\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3001Amazon S3\u30b5\u30fc\u30d0\u30fc\u304b\u30891\u3064\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre><code>wp plugin install advanced-custom-fields jetpack https:\/\/d1qas1txbec8n.cloudfront.net\/wp-content\/uploads\/2015\/06\/23073607\/myplugin.zip --activate<\/code><\/pre>\n<h3>\u8907\u6570\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u5316<\/h3>\n<p>\u5358\u4e00\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>wp plugin deactivate wordpress-seo<\/pre>\n<p>\u3059\u3079\u3066\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4e00\u5ea6\u306b\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u5316\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>wp plugin deactivate --all<\/pre>\n<figure style=\"width: 1023px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2018\/01\/wp-cli-deactivate-all-plugins.png\" alt=\"WP-CLI\u3067\u306e\u3059\u3079\u3066\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u5316\" width=\"1023\" height=\"161\"><figcaption class=\"wp-caption-text\">WP-CLI\u3067\u306e\u3059\u3079\u3066\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u5316<\/figcaption><\/figure>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u4e92\u63db\u6027\u306e\u554f\u984c\u3092\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u3066\u3044\u308b\u969b\u306b\u3001\u3059\u3079\u3066\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4e00\u5ea6\u306b\u7121\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002\u6b21\u306b\u3001\u539f\u56e0\u304c\u898b\u3064\u304b\u308b\u307e\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4e00\u3064\u305a\u3064\u518d\u5ea6\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u66f4\u65b0<\/h3>\n<p>WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u624b\u52d5\u3067\u66f4\u65b0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/p>\n<pre>wp plugin update wordpress-seo<\/pre>\n<figure style=\"width: 1498px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2017\/06\/wp-cli-manually-update-wordpress-plugin.png\" alt=\"P-CLI\u3067\u306eWordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u624b\u52d5\u66f4\u65b0\" width=\"1498\" height=\"573\"><figcaption class=\"wp-caption-text\">WP-CLI\u3067\u306eWordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u624b\u52d5\u66f4\u65b0<\/figcaption><\/figure>\n<h3>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u691c\u7d22\u3068\u7f6e\u63db<\/h3>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u308b\u3060\u3051\u3067\u306f\u30b5\u30a4\u30c8\u3092\u79fb\u884c\u3059\u308b\u3053\u3068\u304c\u96e3\u3057\u3044\u4e3b\u306a\u7406\u7531\u306e\u4e00\u3064\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30b7\u30ea\u30a2\u30eb\u5316\u3055\u308c\u305f\u914d\u5217\u304c\u3042\u308b\u3053\u3068\u3067\u3059\u3002<code>http:\/\/testsite.com<\/code>\u3092<code>http:\/\/livewebsite.com<\/code>\u3067\u7f6e\u304d\u63db\u3048\u308b\u5834\u5408\u3001\u6587\u5b57\u5217\u304c\u4e00\u81f4\u3057\u306a\u3044\u305f\u3081\u3001\u30b7\u30ea\u30a2\u30eb\u5316\u3055\u308c\u305f\u914d\u5217\u306f\u610f\u5473\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><code>search-replace<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6700\u521d\u306b\u914d\u5217\u306e\u30b7\u30ea\u30a2\u30eb\u5316\u304c\u89e3\u9664\u3055\u308c\u3001\u6b21\u306b<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-search-and-replace\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u691c\u7d22\u3068\u7f6e\u63db<\/a>\u304c\u5b9f\u884c\u3055\u308c\u3001\u6700\u5f8c\u306b\u914d\u5217\u304c\u518d\u30b7\u30ea\u30a2\u30eb\u5316\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u6b21\u306e\u7c21\u5358\u306a\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><code>wp search-replace oldstring newstring<\/code><\/p>\n<p>\u8ffd\u52a0\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001<code>--dry-run<\/code>\u3092\u4f7f\u7528\u3057\u3066\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u5185\u5bb9\u3092\u30d7\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u306a\u3069\u3001\u3055\u3089\u306b\u591a\u304f\u306e\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30dd\u30fc\u30c8\u3068\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<\/h3>\n<p>WP-CLI\u3067\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3059\u308b\u65b9\u6cd5\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/export-wordpress-site\/#built-in-tool\">WordPress\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u30c4\u30fc\u30eb<\/a>\u306a\u3069\u306eXML\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3068\u3001\u751f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3084\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u3068\u3044\u30462\u3064\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u79c1\u306e\u65e5\u5e38\u696d\u52d9\u4e0a\u3067\u306f\u5f8c\u8005\u306e\u65b9\u304c\u4fbf\u5229\u3067\u3059\u3002\u30b5\u30a4\u30c8\u3092\u540c\u671f\u3059\u308b\u3068\u304d\u306b\u975e\u5e38\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>SQL\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f<code>wp db export<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u3001\u305d\u308c\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u306b\u306f<code>wp db import file.sql<\/code>\u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u975e\u5e38\u306b\u697d\u3067\u3059\u304c\u3001\u5fc5\u8981\u306a\u3082\u306e\u3092\u4e0a\u66f8\u304d\u3057\u306a\u3044\u3088\u3046\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3068\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u524a\u9664\u3055\u308c\u3001\u4ee3\u308f\u308a\u306bSQL\u30d5\u30a1\u30a4\u30eb\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u3001\u66f4\u65b0\u3001\u524a\u9664<\/h3>\n<p>WP-CLI\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3001\u66f4\u65b0\u3001\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code># List user IDs\n$ wp user list --field=ID\n1\n\n# Create a new user.\n$ wp user create john john@example.com --role=author\nSuccess: Created user 3.\nPassword: HOh897%*(&^R8\n\n# Update an existing user.\n$ wp user update 123 --display_name=Beth --user_pass=bethpass\nSuccess: Updated user 123.\n\n# Delete user 123 and reassign posts to user 443\n$ wp user delete 123 --reassign=443\nSuccess: Removed user 123 from http:\/\/example.com<\/code><\/pre>\n<h3>\u5f79\u5272\u3068\u6a29\u9650\u306e\u7ba1\u7406<\/h3>\n<p>WP-CLI\u3067\u306f\u3001\u5f79\u5272\u3092<code>wp role<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u975e\u5e38\u306b\u7c21\u5358\u306b\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u81ea\u5206\u3067\u958b\u767a\u3057\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u5916\u3067\u4f5c\u6210\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u306e\u5f79\u5272\u3068\u306e\u52d5\u4f5c\u3092\u30c6\u30b9\u30c8\u3057\u305f\u3044\u5834\u5408\u3001\u3053\u308c\u306f\u304b\u306a\u308a\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<pre><code>wp role create organizer Organizer\nwp cap list 'editor' | xargs wp cap add 'organizer'\nwp cap add 'organizer' 'manage-events'<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u65b0\u3057\u3044\u5f79\u5272\uff08Organizer\uff09\u3092\u4f5c\u6210\u3057\u3001\u7de8\u96c6\u8005\u306e\u5f79\u5272\u306e\u3059\u3079\u3066\u306e\u6a5f\u80fd\u3092\u305d\u308c\u306b\u4ed8\u4e0e\u3057\u3001\u65b0\u3057\u3044\u6a5f\u80fd\uff08manage-events\uff09\u3092\u8ffd\u52a0\u3059\u308b\u3082\u306e\u3067\u3059\u3002\u30b3\u30de\u30f3\u30c9\u306e\u64cd\u4f5c\u304b\u3089\u3001WP-CLI\u3092\u4f7f\u3063\u3066<a href=\"https:\/\/kinsta.com\/jp\/blog\/change-wordpress-password\/\">WordPress\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4<\/a>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u306e\u751f\u6210<\/h3>\n<p>\u79c1\u306f\u3001\u30c6\u30b9\u30c8\u306e\u969b\u306b\u4f7f\u7528\u3067\u304d\u308b\u30c0\u30df\u30fc\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30b5\u30a4\u30c8\u3078\u306e\u8ffd\u52a0\u306a\u3069\u306e\u507d\u7269\u95a2\u9023\u306e\u95a2\u6570\u304c\u5927\u597d\u304d\u3067\u3059\u3002WP-CLI\u306b\u306f\u3053\u308c\u3089\u306e\u95a2\u6570\u304c\u3044\u304f\u3064\u304b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u3001\u7528\u8a9e\u3001\u6295\u7a3f\u306a\u3069\u3092\u751f\u6210\u3059\u308b\u3082\u306e\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre><code>wp user generate --count=5 --role=editor\nwp user generate --count=10 --role=author\nwp term generate --count=12\nwp post generate --count=50<\/code><\/pre>\n<h3>WP-Cron\u30a4\u30d9\u30f3\u30c8\u306e\u7ba1\u7406<\/h3>\n<p>WP-CLI\u3067\u306fWP-Cron\u306e\u30a4\u30d9\u30f3\u30c8\u3084WordPress\u306eCron\u30b8\u30e7\u30d6\u3082\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u73fe\u5728\u306ecron\u30a4\u30d9\u30f3\u30c8\u306e\u4e00\u89a7\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre>wp cron event list<\/pre>\n<figure style=\"width: 1281px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2017\/02\/wp-cron-event-list-2.png\" alt=\"wp-cron\u30a4\u30d9\u30f3\u30c8\u306e\u4e00\u89a7\" width=\"1281\" height=\"623\"><figcaption class=\"wp-caption-text\">wp-cron\u30a4\u30d9\u30f3\u30c8\u306e\u4e00\u89a7<\/figcaption><\/figure>\n<h3>\u4e00\u6642\u30c7\u30fc\u30bf\u306e\u524a\u9664<\/h3>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30011\u3064\u307e\u305f\u306f\u3059\u3079\u3066\u306e\u4e00\u6642\u30c7\u30fc\u30bf\u3092\u524a\u9664\u3057\u3066\u30af\u30ea\u30a2\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>wp transient delete --all<\/code><\/pre>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-multisite\/\">\u30de\u30eb\u30c1\u30b5\u30a4\u30c8<\/a>\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3082\u3046\u5c11\u3057\u8907\u96d1\u306a\u30b3\u30de\u30f3\u30c9\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30b3\u30de\u30f3\u30c9\u306f<code>wp_options<\/code>\u30c6\u30fc\u30d6\u30eb\u306e\u307f\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002<code>wp_1_options<\/code>\u3001<code>wp_2_options<\/code>\u306a\u3069\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u305b\u3093\u3002<\/p>\n<pre><code>wp transient delete --all --network && wp site list --field=url | xargs -n1 -I % wp --url=% transient delete --all<\/code><\/pre>\n<h3>wp_options\u30c6\u30fc\u30d6\u30eb\u306e\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7<\/h3>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/wp-options-autoloaded-data\/\" target=\"_blank\" rel=\"noopener noreferrer\">wp_options table<\/a>\u3067\u306f\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u88fd\u30d7\u30e9\u30b0\u30a4\u30f3\u53ca\u3073\u30c6\u30fc\u30de\u306b\u3088\u308a\u6b8b\u3055\u308c\u305f\u81ea\u52d5\u8aad\u307f\u8fbc\u307f\u30c7\u30fc\u30bf\u306e\u305b\u3044\u3067\u30af\u30a8\u30ea\u6642\u9593\u304c\u9045\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<a href=\"https:\/\/guides.wp-bullet.com\/using-wp-cli-doctor-command-to-fix-large-wp_options-autoload-data\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP-CLI\u3092\u4f7f\u7528\u3057\u3066wp_options\u30c6\u30fc\u30d6\u30eb\u3092\u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7\u3059\u308b<\/a>\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001WP Bullet\u306e\u3053\u3061\u3089\u306e\u7d20\u6674\u3089\u3057\u3044\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>WordPress\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u306e\u524a\u9664<\/h3>\n<p>\u5927\u898f\u6a21\u306a\u30b5\u30a4\u30c8\u3067\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-revisions\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress\u306e\u30ea\u30d3\u30b8\u30e7\u30f3<\/a>\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u4f55\u5343\u884c\u306b\u3082\u306a\u308a\u3001\u4e2d\u306b\u306f\u4e0d\u8981\u306a\u3082\u306e\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u6295\u7a3f\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u3092WP-CLI\u3067\u524a\u9664\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u30b3\u30de\u30f3\u30c9\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre>$ wp post delete $(wp post list --post_type='revision' --format=ids)<\/pre>\n<figure style=\"width: 1354px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2017\/01\/wp-cli-delete-wordpress-revisions-1-1.jpg\" alt=\"WP-CLI\u3092\u4f7f\u7528\u3057\u3066WordPress\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u3092\u524a\u9664\u3059\u308b\" width=\"1354\" height=\"339\"><figcaption class=\"wp-caption-text\">WP-CLI\u3092\u4f7f\u7528\u3057\u3066WordPress\u306e\u30ea\u30d3\u30b8\u30e7\u30f3\u3092\u524a\u9664\u3059\u308b<\/figcaption><\/figure>\n<h3>\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u30e2\u30fc\u30c9\u306e\u7ba1\u7406<\/h3>\n<p>WP-CLI v2.2.0\u4ee5\u964d\u3001WordPress\u30b5\u30a4\u30c8\u306e<a href=\"https:\/\/kinsta.com\/blog\/wordpress-maintenance-mode\/\">\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u30e2\u30fc\u30c9<\/a>\u3092\u7ba1\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070\u3001<\/p>\n<pre>wp maintenance-mode activate\nwp maintenance-mode deactivate\nwp maintenance-mode status<\/pre>\n<h3>Elasticsearch\u3092\u4f7f\u7528\u3057\u305f\u30c7\u30fc\u30bf\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210<\/h3>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-search\/\" target=\"_blank\" rel=\"noopener noreferrer\">Elasticsearch<\/a>\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u5168\u6587\u691c\u7d22\u30a8\u30f3\u30b8\u30f3\u3067\u3059\u3002\u30c7\u30fc\u30bf\u306e\u7d22\u5f15\u4ed8\u3051\u3068\u691c\u7d22\u3092\u9a5a\u304f\u307b\u3069\u901f\u3044\u30b9\u30d4\u30fc\u30c9\u3067\u884c\u3046\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u305f\u3082\u306e\u3067\u3059\u3002Kinsta\u306e\u304a\u5ba2\u69d8\u306b\u306fElasticsearch\u3092\u30a2\u30c9\u30aa\u30f3\u3068\u3057\u3066\u3054\u5229\u7528\u3044\u305f\u3060\u3051\u307e\u3059\u3002<a href=\"https:\/\/github.com\/10up\/ElasticPress#wp-cli-commands\" target=\"_blank\" rel=\"noopener noreferrer\">ElasticPress\u306eWP-CLI \u30b3\u30de\u30f3\u30c9<\/a>\u3092\u4f7f\u7528\u3057\u3066\u3001SSH\u3067\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4f5c\u6210\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001<\/p>\n<p><code>wp elasticpress index [--setup] [--network-wide] [--posts-per-page] [--nobulk] [--offset] [--show-bulk-errors] [--post-type]<\/code><\/p>\n<h3>\u591a\u8a00\u8a9e\u30b5\u30a4\u30c8\u306e\u64cd\u4f5c<\/h3>\n<p>WP-CLI v2.0.0\u3067\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-multilingual\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u591a\u8a00\u8a9e\u30b5\u30a4\u30c8<\/a>\u306e\u30e6\u30fc\u30b6\u30fc\u5411\u3051\u306e\u65b0\u3057\u3044\u30b3\u30de\u30f3\u30c9\u30d5\u30a1\u30df\u30ea\u30fc\u3067\u3042\u308b<code>wp i18n<\/code>\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002 \u305f\u3068\u3048\u3070\u3001WordPress\u30d7\u30e9\u30b0\u30a4\u30f3\u307e\u305f\u306f\u30c6\u30fc\u30de\u306ePOT\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>wp i18n make-pot  [] [--slug=] [--domain=] [--ignore-domain] [--merge[=]] [--exclude=] [--skip-js]<\/pre>\n<p><a href=\"https:\/\/github.com\/wp-cli\/i18n-command\" target=\"_blank\" rel=\"noopener noreferrer\">i18n\u30b3\u30de\u30f3\u30c9\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>WP-CLI\u306eWooCommerce\u3068\u306e\u7d44\u307f\u5408\u308f\u305b<\/h3>\n<p>e\u30b3\u30de\u30fc\u30b9\u30b5\u30a4\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304b\uff1f\ud83d\uded2Robot Robot Ninja\u306e\u3053\u3061\u3089\u306e\u7d20\u6674\u3089\u3057\u3044<a href=\"https:\/\/robotninja.com\/blog\/wp-cli-woocommerce-development\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP-CLI\u3092\u4f7f\u7528\u3057\u305fWooCommerce\u306e\u958b\u767a\u30ac\u30a4\u30c9<\/a>\u3067\u306f\u3001\u7c21\u5358\u306b\u4f7f\u7528\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u304c\u307e\u3068\u3081\u3066\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u662f\u975e\u3054\u89a7\u304f\u3060\u3055\u3044\u3002WP-CLI\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u9867\u5ba2\u3084\u6ce8\u6587\u306e\u30ea\u30b9\u30c8\u3092\u751f\u6210\u3057\u305f\u308a\u3001\u4e00\u62ec\u5546\u54c1\u4f5c\u6210\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2 id=\"wp-cli-remotely\">WP-CLI\u306e\u30ea\u30e2\u30fc\u30c8\u3067\u306e\u4f7f\u7528<\/h2>\n<p>WP-CLI\u306e\u6700\u9ad8\u306e\u6a5f\u80fd\u306e\u306e1\u3064\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u306eWordPress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u7ba1\u7406\u3067\u3059\u3002\u3053\u308c\u306f\u307e\u3055\u306b\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u7ba1\u7406\u8005\u306e\u5922\u306e\u5b9f\u73fe\u3067\u3059\u3002<\/p>\n<p>SSH\u3092\u4f7f\u7528\u3066\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u3067WP-CLI\u30b3\u30de\u30f3\u30c9\u3092\u30b9\u30e0\u30fc\u30ba\u306b\u5b9f\u884c\u3067\u304d\u308b\u306b\u306f\u3001\u307e\u305awp-cli-ssh addon\u30b3\u30de\u30f3\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002\u3057\u304b\u3057\u3001<a href=\"http:\/\/wp-cli.org\/blog\/version-0.24.0.html\" target=\"_blank\" rel=\"noopener noreferrer\">v0.24.0<\/a>\u4ee5\u964d\u3001\u3053\u308c\u306fWP-CLI\u81ea\u4f53\u306e\u4e00\u90e8\u306b\u306a\u308a\u307e\u3057\u305f\uff01\ud83d\udc4f<\/p>\n<p><strong>\u6ce8\uff1a<\/strong>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3068\u30b5\u30fc\u30d0\u30fc\u306e\u4e21\u65b9\u306bWP-CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u6210<\/h3>\n<p>\u30b5\u30fc\u30d0\u30fc\u306f\u30b0\u30ed\u30fc\u30d0\u30eb\u307e\u305f\u306f\u30ed\u30fc\u30ab\u30eb\u306b\u69cb\u6210\u3067\u304d\u307e\u3059\u3002\u30b0\u30ed\u30fc\u30d0\u30eb\u69cb\u6210\u3059\u308b\u306b\u306f\u3001<code>config.yml<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b<code>wp-cli.yml<\/code>\u307e\u305f\u306f<code>wp-cli.local.yml<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u6210\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4e0b\u8a18\u3092\u524d\u8ff0\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u3044\u305a\u308c\u304b\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre><code>ssh:\n\n  staging:\n    cmd: ssh %pseudotty% username@server.com %cmd%\n    url: http:\/\/myseite.com\n    path: \/www\/path\/to\/site\/root<\/code><\/pre>\n<p>\u5b8c\u4e86\u5f8c\u306b\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u30ea\u30e2\u30fc\u30c8\u30b5\u30a4\u30c8\u306eWordPress\u3092\u66f4\u65b0\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>wp ssh core update --host=staging<\/code><\/pre>\n<p>\u591a\u304f\u306e\u30b5\u30a4\u30c8\u3092\u6240\u6709\u307e\u305f\u306f\u7ba1\u7406\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u308c\u306f\u3059\u3070\u3089\u3057\u3044\u3053\u3068\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8981\u6c42\u3057\u307e\u3059\u304c\u3001RSA\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5834\u5408\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a18\u5165\u305b\u305a\u306b\u6e08\u307f\u307e\u3059\u3002 RSA\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"http:\/\/www.linuxproblem.org\/art_9.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a>\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002Kinsta<\/p>\n<h2 id=\"using-bash-scripts\">Bash\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f7f\u7528<\/h2>\n<p>Bash\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u4f5c\u696d\u306e\u81ea\u52d5\u306b\u3088\u308a\u3055\u3089\u306b\u6642\u9593\u3092\u7bc0\u7d04\u3067\u304d\u307e\u3059\u3002WordPress\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u591a\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u3053\u3068\u3092\u899a\u3048\u3066\u3044\u307e\u3059\u304b\uff1fbash\u30b9\u30af\u30ea\u30d7\u30c8\u306a\u3089\u30011\u3064\u3060\u3051\u3067\u540c\u3058\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b<code>install.sh<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4ee5\u524d\u3068\u540c\u3058\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre><code>wp core download\nwp core config --dbname=mydbname --dbuser=mydbuser --dbpass=mydbpass --dbhost=localhost --dbprefix=whebfubwef_ --extra-php &lt;&lt;PHP\ndefine( 'WP_DEBUG', true );\ndefine( 'WP_DEBUG_LOG', true );\nPHP\nwp db create\nwp core install --url=http:\/\/siteurl.com --title=SiteTitle --admin_user=username --admin_password=mypassword --admin_email=my@email.com<\/code><\/pre>\n<p><code>bash install.sh<\/code>\u3068\u5165\u529b\u3059\u308b\u3060\u3051\u3067\u3001\u624b\u3092\u51fa\u3055\u305a\u306b\u3001\u4e0a\u8a18\u306e\u3059\u3079\u3066\u304c\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u591a\u304f\u306e\u30b5\u30a4\u30c8\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3059\u3079\u3066\u306e\u74b0\u5883\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306abash\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code>wp ssh core update --host=clientA\nwp ssh core update --host=clientB\nwp ssh core update --host=clientC\nwp ssh core update --host=clientD<\/code><\/pre>\n<p>WordPress\u306e\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u308b\u3068\u3001\u6642\u9593\u3092<strong>\u5927\u5e45\u306b<\/strong>\u7bc0\u7d04\u3067\u304d\u307e\u3059\uff01WP-CLI\u3067\u3084\u308a\u305f\u3044\u3053\u3068\u3092\u4f55\u3067\u3082\u3067\u304d\u308b\u305f\u3081\u3001\u4e00\u5ea6\u306b\u8907\u6570\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c8\u3067\u5b9a\u671f\u7684\u306b\u30c6\u30fc\u30de\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>WP-CLI\u306f\u3001\u307e\u3055\u306b\u958b\u767a\u8005\u3084\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u306e\u5922\u306e\u5b9f\u73fe\u3067\u3059\u3002\u958b\u767a\u8005\u306f\u30c6\u30b9\u30c8\u30b5\u30a4\u30c8\u3092\u7c21\u5358\u306b\u4f5c\u6210\u3057\u305f\u308a\u3001\u30c6\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001\u3042\u3089\u3086\u308b<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-export-users\/\">\u30a4\u30f3\u30dd\u30fc\u30c8\u3084\u30a8\u30af\u30b9\u30dd\u30fc\u30c8<\/a>\u306e\u9b54\u6cd5\u3092\u304b\u3051\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b5\u30a4\u30c8\u7ba1\u7406\u8005\u306f\u3001\u5358\u4e00\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8907\u6570\u306e\u30b5\u30a4\u30c8\u306e\u66f4\u65b0\u306a\u3069\u306e\u7ba1\u7406\u4f5c\u696d\u3092\u5b9f\u65bd\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001<a href=\"https:\/\/make.wordpress.org\/cli\/2018\/08\/08\/wp-cli-v2-0-0-release-notes\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP-CLI v2\u30ea\u30ea\u30fc\u30b9\u306b\u95a2\u3059\u308b\u6ce8\u610f\u4e8b\u9805<\/a>\u3082\u662f\u975e\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>WP-CLI\u3092\u307e\u3060\u8a66\u3057\u305f\u3053\u3068\u306e\u306a\u3044\u5834\u5408\u306f\u3001\u305c\u3072\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002\u512a\u308c\u305f\u6a5f\u80fd\u3092\u3055\u3089\u306b\u8ffd\u52a0\u3059\u308bWP-CLI-SSH\u306a\u3069\u306e<a href=\"https:\/\/make.wordpress.org\/cli\/handbook\/tools\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30b3\u30de\u30f3\u30c9<\/a>\u3082\u591a\u6570\u3042\u308a\u307e\u3059\u3002\u554f\u984c\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/make.wordpress.org\/cli\/handbook\/common-issues\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP-CLI\u306e\u3088\u304f\u3042\u308b\u7570\u5e38\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Kinsta\u306eGoogle Cloud\u30d9\u30fc\u30b9\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306f\u3001\u6a19\u6e96\u8a2d\u5b9a\u306e\u307e\u307e\u3067\u3082WP-CLI\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u6700\u65b0\u306e<a href=\"https:\/\/kinsta.com\/jp\/wordpress-hosting\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress\u5c02\u7528\u30b5\u30fc\u30d0\u30fc\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3<\/a>\u3068\u3001WP-CLI\u306a\u3069\u306e\u512a\u308c\u305f\u30c4\u30fc\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30de\u30cd\u30fc\u30b8\u30c9WordPress\u5c02\u7528\u30b5\u30fc\u30d0\u30fc\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u904e\u53bb\u306eWordPress\u306f\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3092 &#8230;<\/p>\n","protected":false},"author":18,"featured_media":27685,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[45,235],"topic":[],"class_list":["post-27684","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-webdev","tag-wpcli"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406<\/title>\n<meta name=\"description\" content=\"WP-CLI v2\u306f\u3001\u958b\u767a\u8005\u304cWordPress\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406\" \/>\n<meta property=\"og:description\" content=\"WP-CLI v2\u306f\u3001\u958b\u767a\u8005\u304cWordPress\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-29T07:19:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-18T11:05:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Daniel Pataki\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"WP-CLI v2\u306f\u3001\u958b\u767a\u8005\u304cWordPress\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png\" \/>\n<meta name=\"twitter:creator\" content=\"@danielpataki\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Pataki\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/\"},\"author\":{\"name\":\"Daniel Pataki\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/b162216499225e1a4cdd35518f8ef0ff\"},\"headline\":\"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406\",\"datePublished\":\"2020-04-29T07:19:37+00:00\",\"dateModified\":\"2023-10-18T11:05:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/\"},\"wordCount\":227,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png\",\"keywords\":[\"webdev\",\"WPCLI\"],\"articleSection\":[\"WordPress\u306e\u6700\u3082\u4fbf\u5229\u306a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/\",\"name\":\"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png\",\"datePublished\":\"2020-04-29T07:19:37+00:00\",\"dateModified\":\"2023-10-18T11:05:35+00:00\",\"description\":\"WP-CLI v2\u306f\u3001\u958b\u767a\u8005\u304cWordPress\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/b162216499225e1a4cdd35518f8ef0ff\",\"name\":\"Daniel Pataki\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2a44c1ab807766aeaa5c8d76d4c5ea66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2a44c1ab807766aeaa5c8d76d4c5ea66?s=96&d=mm&r=g\",\"caption\":\"Daniel Pataki\"},\"description\":\"Hi, my name is Daniel, I'm the CTO here at Kinsta. You may know me from Smashing Magazine, WPMU Dev, Tuts+ and other WordPress\/Development magazines. Aside from WordPress and PHP I spend most of my time around Node, React, GraphQL and other technologies in the Javascript space. When not working on making the best hosting solution in the Universe I collect board games, play table football in the office, travel or play guitar and sing in a pretty bad band.\",\"sameAs\":[\"http:\/\/danielpataki.com\",\"https:\/\/x.com\/danielpataki\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/danielpataki\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406","description":"WP-CLI v2\u306f\u3001\u958b\u767a\u8005\u304cWordPress\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/","og_locale":"ja_JP","og_type":"article","og_title":"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406","og_description":"WP-CLI v2\u306f\u3001\u958b\u767a\u8005\u304cWordPress\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2020-04-29T07:19:37+00:00","article_modified_time":"2023-10-18T11:05:35+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png","type":"image\/png"}],"author":"Daniel Pataki","twitter_card":"summary_large_image","twitter_description":"WP-CLI v2\u306f\u3001\u958b\u767a\u8005\u304cWordPress\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png","twitter_creator":"@danielpataki","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Daniel Pataki","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/"},"author":{"name":"Daniel Pataki","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/b162216499225e1a4cdd35518f8ef0ff"},"headline":"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406","datePublished":"2020-04-29T07:19:37+00:00","dateModified":"2023-10-18T11:05:35+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/"},"wordCount":227,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png","keywords":["webdev","WPCLI"],"articleSection":["WordPress\u306e\u6700\u3082\u4fbf\u5229\u306a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/","url":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/","name":"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png","datePublished":"2020-04-29T07:19:37+00:00","dateModified":"2023-10-18T11:05:35+00:00","description":"WP-CLI v2\u306f\u3001\u958b\u767a\u8005\u304cWordPress\u3092\u7ba1\u7406\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3068WP-CLI\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/wp-cli\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2020\/04\/wp-cli-v2.png","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/wp-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"WP-CLI v2\u3068\u306f\u2500\u30bf\u30fc\u30df\u30ca\u30eb\u3067WordPress\u3092\u7ba1\u7406"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/b162216499225e1a4cdd35518f8ef0ff","name":"Daniel Pataki","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2a44c1ab807766aeaa5c8d76d4c5ea66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2a44c1ab807766aeaa5c8d76d4c5ea66?s=96&d=mm&r=g","caption":"Daniel Pataki"},"description":"Hi, my name is Daniel, I'm the CTO here at Kinsta. You may know me from Smashing Magazine, WPMU Dev, Tuts+ and other WordPress\/Development magazines. Aside from WordPress and PHP I spend most of my time around Node, React, GraphQL and other technologies in the Javascript space. When not working on making the best hosting solution in the Universe I collect board games, play table football in the office, travel or play guitar and sing in a pretty bad band.","sameAs":["http:\/\/danielpataki.com","https:\/\/x.com\/danielpataki"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/danielpataki\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/27684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=27684"}],"version-history":[{"count":11,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/27684\/revisions"}],"predecessor-version":[{"id":51190,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/27684\/revisions\/51190"}],"alternate":[{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/es"},{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/it"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/fr"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/nl"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/pt"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/de"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/se"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/jp"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/translations\/dk"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/27684\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/27685"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=27684"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=27684"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=27684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}