{"id":351,"date":"2018-11-02T11:02:46","date_gmt":"2018-11-02T10:02:46","guid":{"rendered":"https:\/\/mojoitservices.eu\/_\/?p=351"},"modified":"2021-04-22T01:53:16","modified_gmt":"2021-04-22T00:53:16","slug":"wp-cli","status":"publish","type":"post","link":"https:\/\/mojoitservices.eu\/_\/howtos\/wp-cli\/","title":{"rendered":"WP-CLI"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"351\" class=\"elementor elementor-351\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5d8ef3f9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5d8ef3f9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-54ba9a77\" data-id=\"54ba9a77\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3e5f62df elementor-widget elementor-widget-text-editor\" data-id=\"3e5f62df\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>manage you WP-instance via CLI<\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c631a8c elementor-widget elementor-widget-code-block-for-elementor\" data-id=\"c631a8c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-block-for-elementor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-bash'>wp cache flush<\/code><\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3031c56 elementor-widget elementor-widget-code-block-for-elementor\" data-id=\"3031c56\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-block-for-elementor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-javascript'>wp maintenance-mode\n\nusage: wp maintenance-mode activate [--force]\n   or: wp maintenance-mode deactivate \n   or: wp maintenance-mode is-active \n   or: wp maintenance-mode status<\/code><\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-07c2117 elementor-widget elementor-widget-code-block-for-elementor\" data-id=\"07c2117\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-block-for-elementor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-javascript'>wp plugin list\n\nwp plugin deactivate <\/code><\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c34e08a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c34e08a\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-700fb4f\" data-id=\"700fb4f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7f151fa elementor-widget elementor-widget-code-block-for-elementor\" data-id=\"7f151fa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-block-for-elementor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre class='line-numbers theme-okaidia' data-show-toolbar='yes'><code class='language-javascript'>SUBCOMMANDS\n\n  cache                 Adds, removes, fetches, and flushes the WP Object Cache object.\n  cap                   Adds, removes, and lists capabilities of a user role.\n  cli                   Reviews current WP-CLI info, checks for updates, or views defined aliases.\n  comment               Creates, updates, deletes, and moderates comments.\n  config                Generates and reads the wp-config.php file.\n  core                  Downloads, installs, updates, and manages a WordPress installation.\n  cron                  Tests, runs, and deletes WP-Cron events; manages WP-Cron schedules.\n  db                    Performs basic database operations using credentials stored in wp-config.php.\n  disable-comments      \n  elementor             Elementor Page Builder cli tools.\n  embed                 Inspects oEmbed providers, clears embed cache, and more.\n  eval                  Executes arbitrary PHP code.\n  eval-file             Loads and executes a PHP file.\n  export                Exports WordPress content to a WXR file.\n  help                  Gets help on WP-CLI, or on a specific command.\n  i18n                  Provides internationalization tools for WordPress projects.\n  import                Imports content from a given WXR file.\n  language              Installs, activates, and manages language packs.\n  maintenance-mode      Activates, deactivates or checks the status of the maintenance mode of a site.\n  media                 Imports files as attachments, regenerates thumbnails, or lists registered image sizes.\n  menu                  Lists, creates, assigns, and deletes the active theme&#039;s navigation menus.\n  network               Perform network-wide operations.\n  option                Retrieves and sets site options, including plugin and WordPress settings.\n  package               Lists, installs, and removes WP-CLI packages.\n  plugin                Manages plugins, including installs, activations, and updates.\n  post                  Manages posts, content, and meta.\n  post-type             Retrieves details on the site&#039;s registered post types.\n  rewrite               Lists or flushes the site&#039;s rewrite rules, updates the permalink structure.\n  role                  Manages user roles, including creating new roles and resetting to defaults.\n  rsssl                 \n  scaffold              Generates code for post types, taxonomies, plugins, child themes, etc.\n  search-replace        Searches\/replaces strings in the database.\n  server                Launches PHP&#039;s built-in web server for a specific WordPress installation.\n  shell                 Opens an interactive PHP console for running and testing PHP code.\n  sidebar               Lists registered sidebars.\n  site                  Creates, deletes, empties, moderates, and lists one or more sites on a multisite installation.\n  super-admin           Lists, adds, or removes super admin users on a multisite installation.\n  taxonomy              Retrieves information about registered taxonomies.\n  term                  Manages taxonomy terms and term meta, with create, delete, and list commands.\n  theme                 Manages themes, including installs, activations, and updates.\n  transient             Adds, gets, and deletes entries in the WordPress Transient Cache.\n  user                  Manages users, along with their roles, capabilities, and meta.\n  widget                Manages widgets, including adding and moving them within sidebars.\n<\/code><\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>manage you WP-instance via CLI \u00a0 wp cache flush wp maintenance-mode usage: wp maintenance-mode activate [&#8211;force] or: wp maintenance-mode deactivate or: wp maintenance-mode is-active or: wp maintenance-mode status wp plugin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[26,17],"tags":[27,28],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-features","category-howtos","tag-webmaster","tag-webservices"],"acf":[],"brizy_media":[],"_links":{"self":[{"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":15,"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":670,"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/posts\/351\/revisions\/670"}],"wp:attachment":[{"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mojoitservices.eu\/_\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}