{"id":10933,"date":"2026-06-10T13:35:51","date_gmt":"2026-06-10T13:35:51","guid":{"rendered":"https:\/\/kelma.io\/knowledge-base\/using-the-terminal-and-wp-cli\/"},"modified":"2026-06-10T15:12:03","modified_gmt":"2026-06-10T15:12:03","slug":"using-the-terminal-and-wp-cli","status":"publish","type":"post","link":"https:\/\/kelma.io\/ar\/knowledge-base\/using-the-terminal-and-wp-cli\/","title":{"rendered":"Using the terminal and WP-CLI"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646 \u0627\u0644\u0645\u062a\u0645\u0631\u0651\u0633\u064a\u0646\u060c \u062a\u062a\u0636\u0645\u0651\u0646 \u0643\u0644\u0645\u0629 \u0637\u0631\u0641\u064a\u0629 \u062d\u0642\u064a\u0642\u064a\u0629 \u0641\u064a \u0627\u0644\u0644\u0648\u062d\u0629 \u2014 \u0635\u062f\u0641\u0629 \u062a\u0639\u0645\u0644 \u0643\u0645\u0633\u062a\u062e\u062f\u0645 \u0645\u0648\u0642\u0639\u0643\u060c \u0645\u0628\u0627\u0634\u0631\u0629\u064b \u0641\u064a \u0627\u0644\u0645\u062a\u0635\u0641\u0651\u062d. \u0648\u0647\u064a \u0645\u062b\u0627\u0644\u064a\u0629 \u0644\u0640 WP-CLI: \u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062a\u060c \u0648\u062a\u0641\u0631\u064a\u063a \u0627\u0644\u062a\u062e\u0632\u064a\u0646 \u0627\u0644\u0645\u0624\u0642\u062a\u060c \u0648\u0627\u0644\u0628\u062d\u062b \u0648\u0627\u0644\u0627\u0633\u062a\u0628\u062f\u0627\u0644 \u0641\u064a \u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a\u060c \u0623\u0648 \u062a\u0634\u063a\u064a\u0644 \u0635\u064a\u0627\u0646\u0629 \u0633\u0631\u064a\u0639\u0629\u060c \u062f\u0648\u0646 \u0628\u0631\u0646\u0627\u0645\u062c SSH \u0644\u0625\u0639\u062f\u0627\u062f\u0647.<\/p>\n<div class=\"kb-shot\"><div class=\"kbs-bar\"><div class=\"kbs-dots\"><i><\/i><i><\/i><i><\/i><\/div><div class=\"kbs-url\">dash.kelma.io\/sites\/yoursite.com\/terminal<\/div><\/div><div class=\"kbs-body\"><div class=\"kbs-side\"><div class=\"kbs-logo\">kelma<\/div><div class=\"kbs-nav\"><span>Overview<\/span><span>Settings<\/span><span>\u0648\u0648\u0631\u062f\u0628\u0631\u064a\u0633<\/span><span>\u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a<\/span><span>\u0627\u0644\u0646\u0633\u062e \u0627\u0644\u0627\u062d\u062a\u064a\u0627\u0637\u064a<\/span><span class=\"on\">\u0627\u0644\u0637\u0631\u0641\u064a\u0629<\/span><span>\u0627\u0644\u0623\u0645\u0627\u0646<\/span><span>Cron<\/span><span>\u0639\u0645\u0644\u064a\u0627\u062a \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0648\u062c\u064a\u0647<\/span><span>SSL<\/span><span>\u0627\u0644\u0646\u0637\u0627\u0642\u0627\u062a<\/span><span>Monitoring<\/span><span>\u0627\u0644\u0645\u062a\u0639\u0627\u0648\u0646\u0648\u0646<\/span><\/div><\/div><div class=\"kbs-main\"><div class=\"kbs-h\">\u0627\u0644\u0637\u0631\u0641\u064a\u0629<\/div><div class=\"kbs-sub\">\u0635\u062f\u0641\u0629 \u062d\u0642\u064a\u0642\u064a\u0629 \u0639\u0644\u0649 \u0645\u0648\u0642\u0639\u0643\u060c \u0645\u0639 WP-CLI.<\/div><div class=\"kbs-term\"><div><span class=\"cm\"># run any WP-CLI command<\/span><\/div><div><span class=\"pr\">you@yoursite.com:~$<\/span> wp plugin list &#8211;status=active<\/div><div>akismet&nbsp;&nbsp;&nbsp;active&nbsp;&nbsp;5.3<\/div><div>woocommerce&nbsp;active&nbsp;&nbsp;9.1<\/div><div><span class=\"pr\">you@yoursite.com:~$<\/span> wp cache flush<\/div><div><span class=\"ok\">Success: The cache was flushed.<\/span><\/div><div><span class=\"pr\">you@yoursite.com:~$<\/span> <span style=\"opacity:.6\">\u258b<\/span><\/div><\/div><\/div><\/div><\/div>\n<h2 class=\"wp-block-heading\">\u0641\u062a\u062d \u0627\u0644\u0637\u0631\u0641\u064a\u0629<\/h2>\n<p class=\"wp-block-paragraph\">Open your site and choose Terminal. A shell opens as your site\u2019s system user, scoped to that site. Use the \u2191 \/ \u2193 arrows for command history and <kbd>Ctrl-C<\/kbd> to cancel a line.<\/p>\n<div class=\"kb-callout note\">What works: WP-CLI, file commands, pipes, and redirection. What doesn\u2019t: long-running interactive programs like vim or top \u2014 use WP-CLI flags or edit files over SFTP instead.<\/div>\n\n<h2 class=\"wp-block-heading\">\u0623\u0648\u0627\u0645\u0631 WP-CLI \u0645\u0641\u064a\u062f\u0629<\/h2>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u0627\u0644\u0645\u0647\u0645\u0651\u0629<\/th><th>\u0627\u0644\u0623\u0645\u0631<\/th><\/tr><\/thead><tbody><tr><td>\u0639\u0631\u0636 \u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062a \u0627\u0644\u0646\u0634\u0637\u0629<\/td><td>wp plugin list &#8211;status=active<\/td><\/tr><tr><td>\u062a\u062d\u062f\u064a\u062b \u0643\u0644 \u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062a<\/td><td>wp plugin update &#8211;all<\/td><\/tr><tr><td>\u062a\u0641\u0631\u064a\u063a \u062a\u062e\u0632\u064a\u0646 \u0627\u0644\u0643\u0627\u0626\u0646\u0627\u062a<\/td><td>wp cache flush<\/td><\/tr><tr><td>\u0628\u062d\u062b \u0648\u0627\u0633\u062a\u0628\u062f\u0627\u0644 \u0631\u0627\u0628\u0637<\/td><td>wp search-replace &#8216;old.com&#8217; &#8216;new.com&#8217;<\/td><\/tr><tr><td>\u0625\u0639\u0627\u062f\u0629 \u062a\u0639\u064a\u064a\u0646 \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0645\u0633\u062a\u062e\u062f\u0645<\/td><td>wp user update admin &#8211;user_pass=\u2026<\/td><\/tr><tr><td>\u0625\u0639\u0627\u062f\u0629 \u062a\u0648\u0644\u064a\u062f \u0627\u0644\u0635\u0648\u0631 \u0627\u0644\u0645\u0635\u063a\u0651\u0631\u0629<\/td><td>wp media regenerate<\/td><\/tr><\/tbody><\/table><\/figure>\n\n<h2 class=\"wp-block-heading\">\u0646\u0635\u0627\u0626\u062d \u0648\u062d\u064a\u0644<\/h2>\n<ul class=\"wp-block-list\"><li>\u062e\u0630 \u0644\u0642\u0637\u0629 \u0623\u0648\u0644\u064b\u0627. \u0642\u0628\u0644 \u0628\u062d\u062b-\u0648\u0627\u0633\u062a\u0628\u062f\u0627\u0644 \u0623\u0648 \u062a\u062d\u062f\u064a\u062b \u062c\u0645\u0627\u0639\u064a\u060c \u062e\u0630 \u0646\u0633\u062e\u0629 \u0627\u062d\u062a\u064a\u0627\u0637\u064a\u0629 \u0645\u0624\u0642\u062a\u0629 \u2014 \u062a\u063a\u064a\u064a\u0631\u0627\u062a WP-CLI \u0641\u0648\u0631\u064a\u0629.<\/li><li>Dry-run search-replace with &#8211;dry-run to preview how many rows would change before committing.<\/li><li>\u0639\u0637\u0651\u0644 \u0625\u0636\u0627\u0641\u0629 \u0645\u0639\u0637\u0648\u0628\u0629 \u0628\u0633\u0631\u0639\u0629: <code>wp plugin deactivate &lt;name&gt;<\/code> \u0623\u0641\u0636\u0644 \u0645\u0646 \u0627\u0644\u0628\u062d\u062b \u0641\u064a \u0644\u0648\u062d\u0629 \u0627\u0644\u0625\u062f\u0627\u0631\u0629 \u0639\u0646\u062f\u0645\u0627 \u064a\u0643\u0648\u0646 \u0627\u0644\u0645\u0648\u0642\u0639 \u0645\u062a\u0648\u0642\u0651\u0641\u064b\u0627.<\/li><li>\u0641\u0636\u0651\u0644 \u0627\u0644\u0637\u0631\u0641\u064a\u0629 \u0639\u0644\u0649 \u0627\u0644\u0628\u064a\u0626\u0629 \u0627\u0644\u062a\u062c\u0631\u064a\u0628\u064a\u0629 \u0644\u0644\u062a\u062c\u0627\u0631\u0628\u060c \u062b\u0645 \u0627\u0646\u0634\u0631 \u0627\u0644\u0646\u062a\u064a\u062c\u0629 \u0625\u0644\u0649 \u0627\u0644\u0645\u0628\u0627\u0634\u0631.<\/li><\/ul>\n\n<h2 class=\"wp-block-heading\">\u0625\u0644\u0649 \u0623\u064a\u0646 \u062a\u0630\u0647\u0628 \u0628\u0639\u062f \u0630\u0644\u0643<\/h2><div class=\"kb-next\"><a href=\"https:\/\/kelma.io\/ar\/knowledge-base\/connecting-to-your-site-with-ftp-sftp\/\"><b>\u0627\u062a\u0635\u0644 \u0639\u0628\u0631 SFTP<\/b><span>\u0639\u062f\u0651\u0644 \u0627\u0644\u0645\u0644\u0641\u0627\u062a \u0645\u0628\u0627\u0634\u0631\u0629\u064b.<\/span><\/a><a href=\"https:\/\/kelma.io\/ar\/knowledge-base\/managing-caching-on-kelma\/\"><b>\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u062a\u062e\u0632\u064a\u0646 \u0627\u0644\u0645\u0624\u0642\u062a<\/b><span>\u0641\u0631\u0651\u063a \u0627\u0644\u062a\u062e\u0632\u064a\u0646 \u0627\u0644\u0645\u0624\u0642\u062a \u0645\u0646 \u0627\u0644\u0644\u0648\u062d\u0629 \u0623\u064a\u0636\u064b\u0627.<\/span><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>Run WP-CLI and shell commands on your site straight from the browser \u2014 no SSH client or setup required.<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49,56],"tags":[],"class_list":["post-10933","post","type-post","status-publish","format-standard","hentry","category-knowledge-base","category-kelma-dashboard"],"_links":{"self":[{"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/posts\/10933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/comments?post=10933"}],"version-history":[{"count":1,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/posts\/10933\/revisions"}],"predecessor-version":[{"id":10962,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/posts\/10933\/revisions\/10962"}],"wp:attachment":[{"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/media?parent=10933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/categories?post=10933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/tags?post=10933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}