{"id":288,"date":"2023-03-11T16:56:59","date_gmt":"2023-03-11T07:56:59","guid":{"rendered":"http:\/\/192.168.0.16:3005\/?p=288"},"modified":"2023-03-11T16:58:26","modified_gmt":"2023-03-11T07:58:26","slug":"cakephp-4-console%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a7%e3%83%90%e3%83%83%e3%83%81%e5%87%a6%e7%90%86%e3%80%81php%e3%81%ae%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%81%ae%e5%88%87","status":"publish","type":"post","link":"https:\/\/blog.solong.jp\/?p=288","title":{"rendered":"CakePHP 4: Console\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30c3\u30c1\u51e6\u7406\u3001PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5207\u66ff"},"content":{"rendered":"\n<p>Cakephp 4\u3067\u4f5c\u3063\u305f\u30a2\u30d7\u30ea\u306b\u30d0\u30c3\u30c1\u51e6\u7406\u3082\u4f5c\u308a\u8db3\u3057\u305f\u3044\u5834\u5408\u306f<a href=\"https:\/\/book.cakephp.org\/4\/ja\/console-commands\/commands.html\">\u30b3\u30f3\u30bd\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046<\/a>\u3053\u3068\u306b\u306a\u308b\u304c\u3001\u305d\u306e\u4f7f\u7528\u4f8b\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ bin\/cake hello<\/code><\/pre>\n\n\n\n<p>\u81ea\u5206\u304c\u4f5c\u696d\u3057\u3066\u3044\u305f\u74b0\u5883(RHEL)\u306f\u3001php\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c7.4\u30688.2\u304c\u3069\u3061\u3089\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u304a\u308a\u3001\u3069\u3061\u3089\u3082\u4f7f\u3063\u3066\u3044\u308b\u3002\u4eca\u56de8.2\u3067\u5b9f\u884c\u3057\u305f\u3044\u304c\u3001\u5358\u7d14\u306b\u30b7\u30a7\u30eb\u3067php\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u4eca\u306f7.4\u304c\u6709\u52b9\u306a\u306e\u3067<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ bin\/cake\nPHP Fatal error:  Your PHP version must be equal or higher than 7.4.x to use CakePHP. in \/var\/www\/html\/xxxxx\/config\/requirements.php on line 24\n<\/code><\/pre>\n\n\n\n<p>\u3068\u3044\u3046\u611f\u3058\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002\u305d\u308a\u3083\u305d\u3046\u3060\u3088\u306d\u3002<\/p>\n\n\n\n<p>Web\u3068\u304b\u3067\u3082\u3042\u307e\u308a\u306f\u3063\u304d\u308a\u66f8\u3044\u3066\u306a\u3044\u3051\u3069\u3001\u3053\u308c\u3067\u89e3\u6c7a\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>php82 .\/bin\/cake.php<\/strong>\nNo command provided. Choose one of the available commands.\n\nCurrent Paths:\n\n* app:  src\/\n* root: \/var\/www\/html\/xxxxx\/\n* core: \/var\/www\/html\/xxxxx\/vendor\/cakephp\/cakephp\/\n\nAvailable Commands:\n\nApp:\n - help\n\nBake:\n - bake\n - bake all\n - bake behavior\n - bake cell\n - bake command\n - bake command_helper\n - bake component\n - bake controller\n - bake controller all\n - bake fixture\n - bake fixture all\n - bake form\n - bake helper\n - bake mailer\n - bake middleware\n - bake model\n - bake model all\n - bake plugin\n - bake shell_helper\n - bake template\n - bake template all\n - bake test\n\nCake\/TwigView:\n - twig-view compile\n\nCakePHP:\n - cache clear\n - cache clear_all\n - cache list\n - completion\n - i18n\n - i18n extract\n - i18n init\n - plugin assets copy\n - plugin assets remove\n - plugin assets symlink\n - plugin load\n - plugin loaded\n - plugin unload\n - routes\n - routes check\n - routes generate\n - schema_cache build\n - schema_cache clear\n - server\n - version\n\nDebugKit:\n - benchmark\n\nMigrations:\n - bake migration\n - bake migration_diff\n - bake migration_snapshot\n - bake seed\n - bake simple_migration\n - migrations\n - migrations create\n - migrations dump\n - migrations mark_migrated\n - migrations migrate\n - migrations orm-cache-build\n - migrations orm-cache-clear\n - migrations rollback\n - migrations seed\n - migrations status\n\nTo run a command, type `cake command_name &#91;args|options]`\nTo get help on a specific command, type `cake command_name --help`<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Cakephp 4\u3067\u4f5c\u3063\u305f\u30a2\u30d7\u30ea\u306b\u30d0\u30c3\u30c1\u51e6\u7406\u3082\u4f5c\u308a\u8db3\u3057\u305f\u3044\u5834\u5408\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308b\u304c\u3001\u305d\u306e\u4f7f\u7528\u4f8b\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u308b \u81ea\u5206\u304c\u4f5c\u696d\u3057\u3066\u3044\u305f\u74b0\u5883(RHEL)\u306f\u3001php\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c7.4\u30688.2\u304c\u3069\u3061\u3089\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u304a\u308a\u3001\u3069\u3061\u3089\u3082\u4f7f\u3063\u3066\u3044\u308b\u3002\u4eca\u56de8.2\u3067\u5b9f\u884c\u3057\u305f\u3044\u304c\u3001\u5358\u7d14\u306b\u30b7\u30a7\u30eb\u3067php\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3068\u4eca\u306f7.4\u304c\u6709\u52b9\u306a\u306e\u3067 \u3068\u3044\u3046\u611f\u3058\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002\u305d\u308a\u3083\u305d\u3046\u3060\u3088\u306d\u3002 Web\u3068\u304b\u3067\u3082\u3042\u307e\u308a\u306f\u3063\u304d\u308a\u66f8\u3044\u3066\u306a\u3044\u3051\u3069\u3001\u3053\u308c\u3067\u89e3\u6c7a\u3059\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-288","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=288"}],"version-history":[{"count":2,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/posts\/288\/revisions"}],"predecessor-version":[{"id":290,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/posts\/288\/revisions\/290"}],"wp:attachment":[{"href":"https:\/\/blog.solong.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}