wp cli https://notes.masterweb.sk/ sk WP CLI commands https://notes.masterweb.sk/wp/wp-cli-commands <span class="field field--name-title field--type-string field--label-hidden">WP CLI commands</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/1" typeof="schema:Person" property="schema:name" datatype="">ROOT</span></span> <span class="field field--name-created field--type-created field--label-hidden">Po, 04/22/2019 - 00:52</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><pre> wp core check-update wp cache flush wp plugin list wp plugin update --all --dry-run wp plugin update --all wp core update # <a href="https://developer.wordpress.org/cli/commands/core/update/">https://developer.wordpress.org/cli/commands/core/update/ </a>wp core update-db wp theme update --all --dry-run wp theme update --all wp --info wp core download wp plugin install elementor wp plugin install elementor --activate wp plugin install duplicator --activate wp core version </pre> <p>DB EXPORT:</p> <p>wp db export<br /> wp db export ../db_name.sql</p> <p>SEARCH and REPLACE in DB (search -&gt; replace):</p> <p>wp search-replace 'AAAAA' 'BBBBB' --skip-columns=guid --dry-run<br /> wp search-replace 'AAAAA' 'BBBBB' --skip-columns=guid</p> <p>WP DOCTOR:</p> <p>wp package install <a href="mailto:git@github.com">git@github.com</a>:wp-cli/doctor-command.git</p> <p>wp doctor<br /> wp doctor check --all</p> <p><a href="https://www.wpoven.com/blog/the-complete-guide-to-master-wp-cli-wp-cli-install-commands/">https://www.wpoven.com/blog/the-complete-guide-to-master-wp-cli-wp-cli-install-commands/</a></p> <p><a href="https://www.siteground.com/tutorials/wordpress/wp-cli/">https://www.siteground.com/tutorials/wordpress/wp-cli/</a></p> <p> </p> <p> </p> </div><div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Značky</h3> <ul class="links field__items"> <li><a href="/taxonomy/term/25" hreflang="sk">wp cli</a></li> </ul> </div> Sun, 21 Apr 2019 22:52:36 +0000ROOT51 at https://notes.masterweb.sk WP CLI install https://notes.masterweb.sk/wp/wp-cli-install <span class="field field--name-title field--type-string field--label-hidden">WP CLI install</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/user/1" typeof="schema:Person" property="schema:name" datatype="">ROOT</span></span> <span class="field field--name-created field--type-created field--label-hidden">Ne, 04/21/2019 - 23:38</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><pre> <code contenteditable="true">$ sudo add-apt-repository ppa:tiagohillebrandt/wp-cli $ sudo apt-get update $ sudo apt-get install wp-cli </code></pre> <p> </p> <p><a href="https://linuxhandbook.com/install-wp-cli-linux/">https://linuxhandbook.com/install-wp-cli-linux/</a> - dont run under root :)</p> <p><a href="https://wp-cli.org/">https://wp-cli.org/</a></p> <p>Once you’ve verified requirements, download the <a href="https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar">wp-cli.phar</a> file using <code>wget</code> or <code>curl</code>:</p> <p><code>curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar </code></p> <p>Next, check the Phar file to verify that it’s working:</p> <p><code>php wp-cli.phar --info </code></p> <p>To use WP-CLI from the command line by typing <code>wp</code>, make the file executable and move it to somewhere in your PATH. For example:</p> <p><code>chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/local/bin/wp </code></p> <p>If WP-CLI was installed successfully, you should see something like this when you run <code>wp --info</code>:</p> <p> </p> <p><code>wp core download</code></p> <p>asdf</p> </div><div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Značky</h3> <ul class="links field__items"> <li><a href="/taxonomy/term/25" hreflang="sk">wp cli</a></li> </ul> </div> Sun, 21 Apr 2019 21:38:58 +0000ROOT50 at https://notes.masterweb.skhttps://notes.masterweb.sk/wp/wp-cli-install#comments