{"id":4263,"date":"2020-02-28T10:28:55","date_gmt":"2020-02-28T03:28:55","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=4263"},"modified":"2020-02-28T10:28:55","modified_gmt":"2020-02-28T03:28:55","slug":"huong-dan-ve-wp-cli-cac-va-lenh-dung-tren-hosting","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/huong-dan-ve-wp-cli-cac-va-lenh-dung-tren-hosting\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn v\u1ec1 WP-CLI c\u00e1c v\u00e0 l\u1ec7nh d\u00f9ng tr\u00ean Hosting"},"content":{"rendered":"<p>WP-CLI l\u00e0 c\u00f4ng c\u1ee5 gi\u00fap b\u1ea1n c\u00f3 th\u1ec3 qu\u1ea3n tr\u1ecb WordPress qua giao di\u1ec7n d\u00f2ng l\u1ec7nh. B\u1ea1n c\u00f3 th\u1ec3 th\u1ef1c thi m\u1ed9t s\u1ed1 h\u00e0m, nh\u01b0 l\u00e0 c\u00e0i \u0111\u1eb7t plugins, c\u0169ng nh\u01b0 l\u1ec7nh kh\u00f4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 trong WordPress back-end. \u01afu \u0111i\u1ec3m l\u1edbn nh\u1ea5t c\u1ee7a WP-CLI l\u00e0 th\u1eddi gian b\u1ea1n ti\u1ebft ki\u1ec7m khi s\u1eed d\u1ee5ng, c\u1ea5u h\u00ecnh v\u00e0 v\u1eadn h\u00e0nh WordPress website.<\/p>\n<h3 id=\"C\u00e0i_\u0111\u1eb7t\">C\u00e0i \u0111\u1eb7t<\/h3>\n<p>Tr\u00ean hosting thu\u1ed9c TINOHOST t\u1ea5t c\u1ea3 hosting \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t n\u00ean b\u1ea1n kh\u00f4ng c\u1ea7n ph\u1ea3i thi\u1ebft l\u1eadp n\u1eefa.<\/p>\n<p>N\u1ebfu b\u1ea1n mu\u1ed1n c\u00e0i \u0111\u1eb7t l\u00ean VPS c\u1ee7a m\u00ecnh, b\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t b\u1eb1ng l\u1ec7nh sau :<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">curl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar   ## T\u1ea3i wp-cli.\r\nphp wp-cli.phar --info   ## x\u00e1c nh\u1eadn t\u1ea3i th\u00e0nh c\u00f4ng.\r\nchmod +x wp-cli.phar ## ph\u00e2n quy\u1ec1n cho wp-cli\r\nsudo mv wp-cli.phar \/usr\/local\/bin\/wp    ## di chuy\u1ec3n wp-cli th\u00e0nh th\u01b0 vi\u1ec7n.<\/pre>\n<p>Sau khi di chuy\u1ec3n th\u00e0nh th\u01b0 vi\u1ec7n, b\u1ea1n c\u00f3 th\u1ec3 g\u1ecdi \u0111\u01a1n gi\u1ea3n b\u1eb1ng l\u1ec7nh:<\/p>\n<pre>wp<\/pre>\n<p>&nbsp;<\/p>\n<h3 id=\"S\u1eed_d\u1ee5ng_WP-CLI_tr\u00ean_hosting.\">S\u1eed d\u1ee5ng WP-CLI tr\u00ean hosting.<\/h3>\n<p>&nbsp;<\/p>\n<h4 id=\"C\u00e0i_wordpress\">C\u00e0i wordpress<\/h4>\n<p>Tr\u00ean h\u1ec7 th\u1ed1ng c\u1ee7a TINOHOST, t\u1ea5t c\u1ea3 c\u00e1c hotsing \u0111\u1ec1u \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t WP-CLI n\u00ean \u0111\u1ec3 s\u1eed d\u1ee5ng b\u1ea1n c\u1ea7n c\u00f3 quy\u1ec1n SSH v\u00e0o hosting. \u0110\u1ec3 ki\u1ec3m tra c\u00f3 quy\u1ec1n truy c\u1eadp SSH v\u00e0o hosting hay kh\u00f4ng b\u1ea1n t\u00ecm xu\u1ed1ng ph\u1ea7n <strong>ADVANCED\u00a0<\/strong>sau \u0111\u00f3 b\u1ea1n xem c\u00f3 quy\u1ec1n s\u1eed d\u1ee5ng Terminal hay kh\u00f4ng, n\u1ebfu c\u00f3 th\u00ec t\u1ee9c b\u1ea1n \u0111\u00e3 c\u00f3 quy\u1ec1n truy c\u1eadp v\u00e0o hosting Cpanel. B\u1ea1n click v\u00e0o \u0111\u1ec3 v\u00e0o giao di\u1ec7n s\u1eed d\u1ee5ng.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/2N8w4zXeYNM\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/83ef6eef-48f8-435c-9cd3-97b1c675580f\/02.28.2020-09.02.png?source=oembed\" alt=\"02.28.2020-09.02.22\" width=\"500\" height=\"216\" title=\"\"><\/a><\/p>\n<p>Ti\u1ebfp theo b\u1ea1n di chuy\u1ec3n t\u1edbi th\u01b0 m\u1ee5c ch\u1ee9a m\u00e3 ngu\u1ed3n website b\u1ea1n \u0111\u1ecbnh c\u00e0i \u0111\u1eb7t.\u00a0 \u1ede \u0111\u00e2y t\u00f4i \u0111\u1ecbnh c\u00e0i \u0111\u1eb7t cho website tinohost.info v\u1edbi \u0111\u01b0\u1eddng d\u1eabn l\u00e0 : \/home\/nguyenvanphong\/tinohost.info\/<\/p>\n<pre>cd \/home\/nguyenvanphong\/tinohost.info\/<\/pre>\n<p>Ti\u1ebfp theo t\u00f4i t\u1ea3i wordpress b\u1eb1ng wp-cli v\u1edbi phi\u00ean b\u1ea3n mong mu\u1ed1n, \u1edf \u0111\u00e2y t\u00f4i t\u1ea3i phi\u00ean b\u1ea3n 5.3 .<\/p>\n<pre>wp core download --version=5.3<\/pre>\n<p>T\u00f4i d\u00f9ng l\u1ec7nh<strong> ll<\/strong> \u0111\u1ec3 ki\u1ec3m tra file trong th\u01b0 m\u1ee5c, d\u01b0\u1edbi \u0111\u00e2y l\u00e0 k\u1ebft qu\u1ea3:<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/6wsuJhNjONE4\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/7c317ec9-51c1-4c6f-8dfb-fca52c5c9929\/02.28.2020-09.19.png?source=oembed\" alt=\"02.28.2020-09.19.18\" width=\"500\" height=\"269\" title=\"\"><\/a><\/p>\n<p>Ti\u1ebfp theo t\u00f4i t\u1ea1o m\u1ed9t database tr\u00ean cPanel v\u1edbi th\u00f4ng tin nh\u01b0 sau :<\/p>\n<pre>T\u00ean database: nguyenvanphong_tinohost\r\n\r\nuser: nguyenvanphong_tinohost\r\n\r\npassword: Tinohost@123!1<\/pre>\n<p>B\u1ea1n \u0111\u1ec3 \u00fd, b\u1ea1n c\u1ea7n ph\u1ea3i ph\u00e2n quy\u1ec1n user cho database tr\u00ean tr\u00ecnh qu\u1ea3n l\u00fd t\u1ea1o mysql.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/yq4J0MCVL\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/808a2065-af71-45a2-a1f8-5e19435ce2d2\/02.28.2020-09.30.png?source=oembed\" alt=\"02.28.2020-09.30.07\" width=\"500\" height=\"129\" title=\"\"><\/a><\/p>\n<p>Ti\u1ebfp theo t\u00f4i t\u1ea1o file wp-config v\u1edbi th\u00f4ng tin c\u1ea5u h\u00ecnh database nh\u01b0 tr\u00ean.<\/p>\n<pre> wp core config --dbname='nguyenvanphong_tinohost' --dbuser='nguyenvanphong_tinohost' --dbpass='Tinohost@123!1'<\/pre>\n<p>B\u1ea1n thay \u0111\u1ed5i c\u00e1c th\u00f4ng tin (dbname, dbuser, dbpass) tr\u00ean v\u1edbi n\u1ed9i dung ph\u00f9 h\u1ee3p \u0111\u1ed1i v\u1edbi database b\u1ea1n \u0111\u00e3 t\u1ea1o, b\u1ea1n nh\u1edb ph\u1ea3i \u0111\u1ec3 th\u00f4ng tin trong d\u1ea5u nh\u00e1y. K\u1ebft qu\u1ea3 nh\u1eadn \u0111\u01b0\u1ee3c nh\u01b0 sau :<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/lDlBdXlYUBZX\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/d3a380f3-4255-4212-94e4-4647910556e2\/02.28.2020-09.36.png?source=oembed\" alt=\"02.28.2020-09.36.05\" width=\"500\" height=\"140\" title=\"\"><\/a><\/p>\n<p>Ti\u1ebfp theo ta s\u1ebd c\u00e0i \u0111\u1eb7t wordpress v\u1edbi c\u00e1c th\u00f4ng tin c\u1ea5u h\u00ecnh nh\u01b0 sau :<\/p>\n<p>L\u1ec7nh c\u00e0i \u0111\u1eb7t : <code>wp core install<\/code>c\u00f9ng c\u00e1c tham s\u1ed1 sau:<\/p>\n<pre>--url : \u0110\u1ecba ch\u1ec9 url website truy c\u1eadp \r\n--title : T\u00ean website\r\n--admin_user : user admin \u0111\u0103ng nh\u1eadp \r\n--admin_password : password cho user admin\r\n--admin_email : email admin qu\u1ea3n tr\u1ecb.<\/pre>\n<div><\/div>\n<p>\u0110o\u1ea1n l\u1ec7nh s\u1ebd nh\u01b0 th\u1ebf n\u00e0y:<\/p>\n<div>\n<pre id=\"highlighter_707815\" class=\"syntaxhighlighter  bash   \">wp core install --url='https:\/\/tinohost.info' --title='Tinohost Blog' --admin_user='admin' --admin_password='Tinohost@123!1' --admin_email='phong.nguyen@tino.org'<\/pre>\n<div>K\u1ebft qu\u1ea3 n\u1ebfu nh\u01b0 sau l\u00e0 b\u1ea1n \u0111\u00e3 th\u00e0nh c\u00f4ng.<\/div>\n<\/div>\n<div>https:\/\/www.screencast.com\/t\/Z2yZquUxuLkV<\/div>\n<div><\/div>\n<div>Sau khi c\u00e0i \u0111\u1eb7t xong, gi\u1edd b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp website c\u0169ng nh\u01b0 l\u00e0 truy c\u1eadp trang wp-admin v\u1edbi th\u00f4ng tin b\u1ea1n \u0111\u00e3 t\u1ea1o ph\u00eda tr\u00ean.<\/div>\n<div>https:\/\/www.screencast.com\/t\/QD5g9Lw7iPM<\/div>\n<div><\/div>\n<h4 id=\"\"><\/h4>\n<h4 id=\"Qu\u1ea3n_l\u00fd_Theme_v\u1edbi_WP-CLI\">Qu\u1ea3n l\u00fd Theme v\u1edbi WP-CLI<\/h4>\n<p>B\u1ea1n c\u00f3 th\u1ec3 li\u1ec7t k\u00ea c\u00e1c theme tr\u00ean website b\u1eb1ng l\u1ec7nh :<\/p>\n<pre class=\"\">wp theme list<\/pre>\n<p><a href=\"https:\/\/www.screencast.com\/t\/6eqkQS330\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/1fa7c4a5-c83b-4869-9aa6-eea1cc9b63af\/02.28.2020-09.55.png?source=oembed\" alt=\"02.28.2020-09.55.00\" width=\"500\" height=\"160\" title=\"\"><\/a><\/p>\n<p>B\u1ea1n c\u00f3 th\u1ec3 k\u00edch ho\u1ea1t theme b\u1eb1ng l\u1ec7nh, \u1edf \u0111\u00e2y t\u00f4i \u0111ang mu\u1ed1n k\u00edch ho\u1ea1t theme twentysixteen.<\/p>\n<pre class=\"\">wp theme activate 'twentysixteen'<\/pre>\n<p>K\u1ebft qu\u1ea3:<\/p>\n<pre>Success: Switched to 'Twenty Sixteen' theme.<\/pre>\n<p>&nbsp;<\/p>\n<p>Gi\u1edd t\u00f4i mu\u1ed1n t\u00ecm theme mi\u1ec5n ph\u00ed tr\u00ean th\u01b0 vi\u1ec7n v\u1edbi t\u1eeb kho\u00e1 news t\u00f4i s\u1ebd t\u00ecm b\u1eb1ng l\u1ec7nh sau :<\/p>\n<pre>wp theme search news<\/pre>\n<p>K\u1ebft qu\u1ea3:<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/TdLq9BVF\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/77b6776d-9345-45db-ac44-9061710ec8a2\/02.28.2020-10.00.png?source=oembed\" alt=\"02.28.2020-10.00.08\" width=\"500\" height=\"151\" title=\"\"><\/a><\/p>\n<p>Ti\u1ebfp theo t\u00f4i s\u1ebd c\u00e0i \u0111\u1eb7t theme\u00a0<strong>News Box Free<\/strong><\/p>\n<p>T\u00f4i s\u1ebd c\u00e0i \u0111\u1eb7t v\u00e0 k\u00edch ho\u1ea1t b\u1eb1ng l\u1ec7nh sau :<\/p>\n<pre class=\"\">wp theme install news-box-free --activate<\/pre>\n<p>K\u1ebft qu\u1ea3.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/U82FscXEIJr5\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/4107a65a-d8f1-4503-8d7a-88fc3ee7c9a0\/02.28.2020-10.02.png?source=oembed\" alt=\"02.28.2020-10.02.36\" width=\"500\" height=\"95\" title=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4 id=\"S\u1eed_d\u1ee5ng_WP-CLI_\u0111\u1ec3_c\u00e0i_\u0111\u1eb7t_v\u00e0_qu\u1ea3n_l\u00fd_WordPress_Plugins\"><span id=\"Buoc-5-Su-dung-WP-CLI-de-cai-dat-va-quan-ly-WordPress-Plugins\"><strong>S\u1eed d\u1ee5ng WP-CLI \u0111\u1ec3 c\u00e0i \u0111\u1eb7t v\u00e0 qu\u1ea3n l\u00fd WordPress Plugins<\/strong><\/span><\/h4>\n<p>B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng l\u1ec7nh sau \u0111\u1ec3 li\u1ec7t k\u00ea list plugin tr\u00ean website.<\/p>\n<pre class=\"\">wp plugin list<\/pre>\n<p>K\u1ebft qu\u1ea3:<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/e1YFLbxJ\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/53107457-af3a-4395-ad24-3e2fec1b303c\/02.28.2020-10.05.png?source=oembed\" alt=\"02.28.2020-10.05.54\" width=\"500\" height=\"118\" title=\"\"><\/a><\/p>\n<p>T\u00ecm plugin contact form 7 t\u00f4i t\u00ecm b\u1eb1ng l\u1ec7nh sau<\/p>\n<pre class=\"\">wp plugin search 'contact form 7'<\/pre>\n<p>K\u1ebft qu\u1ea3:<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/zNWHxd7QJ3FM\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/f90cebea-4f50-452e-98c2-7f387b6c51dc\/02.28.2020-10.07.png?source=oembed\" alt=\"02.28.2020-10.07.33\" width=\"500\" height=\"106\" title=\"\"><\/a><\/p>\n<p>T\u00f4i c\u00e0i \u0111\u1eb7t plugin v\u00e0 k\u00edch ho\u1ea1t b\u1eb1ng l\u1ec7nh sau :<\/p>\n<pre>wp plugin install contact-form-7 --activate<\/pre>\n<p>K\u1ebft qu\u1ea3:<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/Z0RN1lwv2Q\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/ea1e0778-86d2-4320-8423-56b257b12605\/02.28.2020-10.09.png?source=oembed\" alt=\"02.28.2020-10.09.04\" width=\"500\" height=\"66\" title=\"\"><\/a><\/p>\n<p>\u0110\u1ec3 xo\u00e1 plugin b\u1ea1n d\u00f9ng l\u1ec7nh:<\/p>\n<pre class=\"\">wp plugin delete contact-form-7<\/pre>\n<p>K\u1ebft qu\u1ea3:<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/h0Lpk4tcf\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/31146bc6-fbb2-4b94-a91b-a6697e90eb0f\/02.28.2020-10.10.png?source=oembed\" alt=\"02.28.2020-10.10.27\" width=\"500\" height=\"29\" title=\"\"><\/a><\/p>\n<h4 id=\"S\u1eed_d\u1ee5ng_WP-CLI_\u0111\u1ec3_c\u1eadp_nh\u1eadt_wordpress.\"><span id=\"Buoc-5-Su-dung-WP-CLI-de-cai-dat-va-quan-ly-WordPress-Plugins\"><strong>S\u1eed d\u1ee5ng WP-CLI \u0111\u1ec3 c\u1eadp nh\u1eadt wordpress.<\/strong><\/span><\/h4>\n<p>C\u1eadp nh\u1eadt code wordpress.<\/p>\n<pre class=\"\">wp core update<\/pre>\n<p>C\u1eadp nh\u1eadt database wordpress.<\/p>\n<pre class=\"\">wp core update-db<\/pre>\n<p>C\u1eadp nh\u1eadt theme<\/p>\n<pre class=\"\">wp theme update --all<\/pre>\n<p>C\u1eadp nh\u1eadt plugin.<\/p>\n<pre class=\"\">wp plugin update --all<\/pre>\n<p>&nbsp;<\/p>\n<h4 id=\"S\u1eed_d\u1ee5ng_WP-CLI_\u0111\u1ec3_qu\u1ea3n_l\u00fd_b\u00e0i_vi\u1ebft.\"><span id=\"Buoc-5-Su-dung-WP-CLI-de-cai-dat-va-quan-ly-WordPress-Plugins\"><strong>S\u1eed d\u1ee5ng WP-CLI \u0111\u1ec3 qu\u1ea3n l\u00fd b\u00e0i vi\u1ebft.<\/strong><\/span><\/h4>\n<p>Li\u1ec7t k\u00ea to\u00e0n b\u1ed9 b\u00e0i vi\u1ebft tr\u00ean trang:<\/p>\n<pre class=\"\">wp post list<\/pre>\n<p>Xo\u00e1 b\u00e0i vi\u1ebft<\/p>\n<pre class=\"\">wp post delete 1<\/pre>\n<p>T\u1ea1o b\u00e0i vi\u1ebft m\u1edbi v\u1edbi vi\u1ec7c s\u1eed d\u1ee5ng tr\u00ecnh so\u1ea1n th\u1ea3o vim:<\/p>\n<pre class=\"\">wp post create --post_status=publish --post_title='Test b\u00e0i vi\u1ebft m\u1edbi' --edit<\/pre>\n<p>T\u1ea1o b\u00e0i vi\u1ebft m\u1edbi t\u1eeb file txt, trong \u0111\u00f3 file newpost.txt l\u00e0 file n\u1ed9i dung b\u00e0i vi\u1ebft.<\/p>\n<pre class=\"\">wp post create .\/newpost.txt --post_title='b\u00e0i vi\u1ebft m\u1edbi tinohost' --post_status=publish<\/pre>\n<p>T\u1ea1o nhi\u1ec1u b\u00e0i vi\u1ebft \u0111\u1ec3 test n\u1ed9i dung gi\u1ea3 nh\u01b0 t\u00f4i mu\u1ed1n t\u1ea1o 500 b\u00e0i vi\u1ebft.<\/p>\n<pre class=\"\">wp post generate --count=500<\/pre>\n<p>&nbsp;<\/p>\n<p>Nh\u01b0 v\u1eady v\u1edbi b\u00e0i vi\u1ebft n\u00e0y, c\u00e1c b\u1ea1n \u0111\u00e3 bi\u1ebft \u0111\u01b0\u1ee3c c\u00e1ch t\u1ea1o m\u1ed9t website wordpress c\u0169ng nh\u01b0 l\u00e0 qu\u1ea3n l\u00fd s\u01a1 b\u1ed9 website \u0111\u00f3. N\u1ebfu nh\u01b0 b\u1ea1n c\u1ea7n nhi\u1ec1u ch\u1ee9c n\u0103ng h\u01a1n, b\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp website: https:\/\/developer.wordpress.org\/cli\/commands\/ \u0111\u1ec3 xem th\u00eam th\u00f4ng tiin. WP-CLI c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c m\u1edf r\u1ed9ng b\u1eb1ng c\u00e1ch l\u1ec7nh c\u1ee7a b\u00ean th\u1ee9 ba. L\u00e0m vi\u1ec7c v\u1edbi WordPress s\u1ebd ti\u1ec7n h\u01a1n n\u1ebfu kh\u00f4ng c\u1ea7n click chu\u1ed9t qua m\u1ed7i section trong trang qu\u1ea3n tr\u1ecb c\u1ee7a admin. N\u1ebfu b\u1ea1n \u0111\u00e3 t\u1eebng l\u00e0m vi\u1ec7c v\u1edbi nhi\u1ec1u site WordPress, vi\u1ec7c n\u00e0y s\u1ebd gi\u00fap t\u0103ng n\u0103ng xu\u1ea5t. Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WP-CLI l\u00e0 c\u00f4ng c\u1ee5 gi\u00fap b\u1ea1n c\u00f3 th\u1ec3 qu\u1ea3n tr\u1ecb WordPress qua giao di\u1ec7n d\u00f2ng l\u1ec7nh. B\u1ea1n c\u00f3 th\u1ec3 th\u1ef1c thi m\u1ed9t s\u1ed1 h\u00e0m, nh\u01b0 l\u00e0 c\u00e0i \u0111\u1eb7t plugins, c\u0169ng nh\u01b0 l\u1ec7nh kh\u00f4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 trong WordPress back-end. \u01afu \u0111i\u1ec3m l\u1edbn nh\u1ea5t c\u1ee7a WP-CLI l\u00e0 th\u1eddi gian b\u1ea1n ti\u1ebft ki\u1ec7m khi s\u1eed d\u1ee5ng, c\u1ea5u [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[5154],"class_list":["post-4263","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-wordpress"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=4263"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4263\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=4263"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=4263"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=4263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}