{"id":33060,"date":"2019-02-04T18:47:07","date_gmt":"2019-02-04T16:47:07","guid":{"rendered":"https:\/\/tuthost.ua\/faq\/how-to-use-wp-cli-on-wordpress-hosting\/"},"modified":"2024-07-19T22:56:27","modified_gmt":"2024-07-19T19:56:27","slug":"kak-ispolzovat-wp-cli-na-wordpress-hostinge","status":"publish","type":"ht_kb","link":"https:\/\/tuthost.ua\/en\/faq\/kak-ispolzovat-wp-cli-na-wordpress-hostinge\/","title":{"rendered":"How to use WP-CLI on wordpress hosting"},"content":{"rendered":"\n<p>A very handy utility for quick work with Wordpress is available on the <a href=\"https:\/\/tuthost.ua\/en\/hosting\/wordpress\/\">hosting plans for<\/a> Wordpress. Working with it takes place through the command line, and the SSH protocol is used to connect. If you do not have experience with the command line &#8211; we do not recommend you to use this utility, as wrong actions can damage the site.<\/p>\n\n<p>The WP-CLI tool is designed to allow you to quickly perform common Wordpress operations that are usually done in the admin area through the command line. For example, installing\/updating plugins, adding users, etc. Developers of sites on Wordpress will be able to appreciate how much it can speed up the work in the mass development of sites.<\/p>\n\n<p><a rel=\"noopener noreferrer nofollow\" href=\"https:\/\/make.wordpress.org\/cli\/handbook\/quick-start\/\" target=\"_blank\">Brief WP-CLI Documentation<\/a><\/p>\n\n<p><a rel=\"noopener noreferrer nofollow\" href=\"https:\/\/developer.wordpress.org\/cli\/commands\/\" target=\"_blank\">Complete list of WP-CLI commands<\/a><\/p>\n\n<p>To get access via SSH &#8211; fill out a simple request form in those. support &#8211; after which we will activate SSH access for you.<\/p>\n\n                <div class='gf_browser_chrome gform_wrapper' id='gform_wrapper_3' ><div id='gf_3' class='gform_anchor' tabindex='-1'><\/div><form method='post' enctype='multipart\/form-data' target='gform_ajax_frame_3' id='gform_3'  action='\/en\/wp-json\/wp\/v2\/ht-kb\/33060#gf_3'>\n                        <div class='gform_body'><ul id='gform_fields_3' class='gform_fields top_label form_sublabel_below description_below'><li id='field_3_1'  class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_3_1' >Email<span class='gfield_required'>*<\/span><\/label><div class='ginput_container ginput_container_email'>\n                            <input name='input_1' id='input_3_1' type='email' value='' class='medium'    aria-required=\"true\" aria-invalid=\"false\" \/>\n                        <\/div><\/li><li id='field_3_2'  class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_3_2' >Login to Directadmin<span class='gfield_required'>*<\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_2' id='input_3_2' type='text' value='' class='medium'     aria-required=\"true\" aria-invalid=\"false\" \/><\/div><\/li><li id='field_3_3'  class='gfield gfield_contains_required field_sublabel_below field_description_below gfield_visibility_visible' ><label class='gfield_label' for='input_3_3' >The IP address from which you will connect<span class='gfield_required'>*<\/span><\/label><div class='ginput_container ginput_container_text'><input name='input_3' id='input_3_3' type='text' value='' class='medium'  aria-describedby=\"gfield_description_3_3\"   aria-required=\"true\" aria-invalid=\"false\" \/><\/div><div class='gfield_description' id='gfield_description_3_3'>You can check your current IP address here: https:\/\/whatismyipaddress.com\/<\/div><\/li>\n                            <\/ul><\/div>\n        <div class='gform_footer top_label'> <input type='submit' id='gform_submit_button_3' class='gform_button button' value='Send request'  onclick='if(window[\"gf_submitting_3\"]){return false;}  if( !jQuery(\"#gform_3\")[0].checkValidity || jQuery(\"#gform_3\")[0].checkValidity()){window[\"gf_submitting_3\"]=true;}  ' onkeypress='if( event.keyCode == 13 ){ if(window[\"gf_submitting_3\"]){return false;} if( !jQuery(\"#gform_3\")[0].checkValidity || jQuery(\"#gform_3\")[0].checkValidity()){window[\"gf_submitting_3\"]=true;}  jQuery(\"#gform_3\").trigger(\"submit\",[true]); }' \/> <input type='hidden' name='gform_ajax' value='form_id=3&amp;title=&amp;description=&amp;tabindex=0' \/>\n            <input type='hidden' class='gform_hidden' name='is_submit_3' value='1' \/>\n            <input type='hidden' class='gform_hidden' name='gform_submit' value='3' \/>\n            \n            <input type='hidden' class='gform_hidden' name='gform_unique_id' value='' \/>\n            <input type='hidden' class='gform_hidden' name='state_3' value='WyJbXSIsIjE0YzUzMTY3ZmViNTQ1MmYyN2U4NDM4ZWZmOWI5MWZhIl0=' \/>\n            <input type='hidden' class='gform_hidden' name='gform_target_page_number_3' id='gform_target_page_number_3' value='0' \/>\n            <input type='hidden' class='gform_hidden' name='gform_source_page_number_3' id='gform_source_page_number_3' value='1' \/>\n            <input type='hidden' name='gform_field_values' value='' \/>\n            \n        <\/div>\n                        <\/form>\n                        <\/div>\n                <iframe style='display:none;width:0px;height:0px;' src='about:blank' name='gform_ajax_frame_3' id='gform_ajax_frame_3' title='Ajax Frame'>This iframe contains the logic required to handle Ajax powered Gravity Forms.<\/iframe>\n                <script type='text\/javascript'>jQuery(document).ready(function($){gformInitSpinner( 3, 'https:\/\/tuthost.ua\/wp-content\/plugins\/gravityforms\/images\/spinner.gif' );jQuery('#gform_ajax_frame_3').on('load',function(){var contents = jQuery(this).contents().find('*').html();var is_postback = contents.indexOf('GF_AJAX_POSTBACK') >= 0;if(!is_postback){return;}var form_content = jQuery(this).contents().find('#gform_wrapper_3');var is_confirmation = jQuery(this).contents().find('#gform_confirmation_wrapper_3').length > 0;var is_redirect = contents.indexOf('gformRedirect(){') >= 0;var is_form = form_content.length > 0 && ! is_redirect && ! is_confirmation;var mt = parseInt(jQuery('html').css('margin-top'), 10) + parseInt(jQuery('body').css('margin-top'), 10) + 100;if(is_form){jQuery('#gform_wrapper_3').html(form_content.html());if(form_content.hasClass('gform_validation_error')){jQuery('#gform_wrapper_3').addClass('gform_validation_error');} else {jQuery('#gform_wrapper_3').removeClass('gform_validation_error');}setTimeout( function() { \/* delay the scroll by 50 milliseconds to fix a bug in chrome *\/ jQuery(document).scrollTop(jQuery('#gform_wrapper_3').offset().top - mt); }, 50 );if(window['gformInitDatepicker']) {gformInitDatepicker();}if(window['gformInitPriceFields']) {gformInitPriceFields();}var current_page = jQuery('#gform_source_page_number_3').val();gformInitSpinner( 3, 'https:\/\/tuthost.ua\/wp-content\/plugins\/gravityforms\/images\/spinner.gif' );jQuery(document).trigger('gform_page_loaded', [3, current_page]);window['gf_submitting_3'] = false;}else if(!is_redirect){var confirmation_content = jQuery(this).contents().find('.GF_AJAX_POSTBACK').html();if(!confirmation_content){confirmation_content = contents;}setTimeout(function(){jQuery('#gform_wrapper_3').replaceWith(confirmation_content);jQuery(document).scrollTop(jQuery('#gf_3').offset().top - mt);jQuery(document).trigger('gform_confirmation_loaded', [3]);window['gf_submitting_3'] = false;}, 50);}else{jQuery('#gform_3').append(contents);if(window['gformRedirect']) {gformRedirect();}}jQuery(document).trigger('gform_post_render', [3, current_page]);} );} );<\/script><script type='text\/javascript'> jQuery(document).bind('gform_post_render', function(event, formId, currentPage){if(formId == 3) {} } );jQuery(document).bind('gform_post_conditional_logic', function(event, formId, fields, isInit){} );<\/script><script type='text\/javascript'> jQuery(document).ready(function(){jQuery(document).trigger('gform_post_render', [3, 1]) } ); <\/script>","protected":false},"excerpt":{"rendered":"<p>A very handy utility for quick work with Wordpress is available on the hosting plans for Wordpress. Working with it takes place through the command line, and the SSH protocol is used to connect. If you do not have experience with the command line &#8211; we do not recommend you to use this utility, as&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"ht-kb-category":[10669],"ht-kb-tag":[],"class_list":["post-33060","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hosting-en"],"taxonomy_info":{"ht_kb_category":[{"value":10669,"label":"Hosting"}]},"featured_image_src_large":[],"author_info":{"display_name":"Denys Semeniuk","author_link":"https:\/\/tuthost.ua\/en\/author\/semden\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/33060","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/comments?post=33060"}],"version-history":[{"count":4,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/33060\/revisions"}],"predecessor-version":[{"id":52375,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/33060\/revisions\/52375"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media?parent=33060"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-category?post=33060"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=33060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}