WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
Take Command of WordPress With WP-CLI at WordCamp Long BeachDiana Thompson
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
Contributing to WordPress Core - Peter WilsonWordCamp Sydney
Almost everyone will have heard the phrase “don’t hack WordPress core” before, what’s less known is that it’s only the start of the saying. Don’t hack WordPress core, without contributing the hacks back.
Contributing to WordPress core is like riding a bike, it takes a little effort to get started but once you learn it’s a skill you’ll never forget.
You will be given a jump start on contributing, from how to use the bug tracker all the way to contributing a patch and getting your first props.
How to improve your workflows via SSH gateway. Experts at WP Engine help you learn about how WordPress developers can make their work more efficient using WP-CLI via SSH gateway to improve workflows.
On-demand webinar: https://hs.wpengine.com/webinar-improve-workflows-SSH-gateway
Take Command of WordPress With WP-CLI at WordCamp Long BeachDiana Thompson
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
WP-CLI is the official command line tool for interacting with and managing your WordPress sites. Learn to use it to speed up maintenance and deployment tasks, and to aid in theme and plugin development.
Contributing to WordPress Core - Peter WilsonWordCamp Sydney
Almost everyone will have heard the phrase “don’t hack WordPress core” before, what’s less known is that it’s only the start of the saying. Don’t hack WordPress core, without contributing the hacks back.
Contributing to WordPress core is like riding a bike, it takes a little effort to get started but once you learn it’s a skill you’ll never forget.
You will be given a jump start on contributing, from how to use the bug tracker all the way to contributing a patch and getting your first props.
How to improve your workflows via SSH gateway. Experts at WP Engine help you learn about how WordPress developers can make their work more efficient using WP-CLI via SSH gateway to improve workflows.
On-demand webinar: https://hs.wpengine.com/webinar-improve-workflows-SSH-gateway
How to Issue and Activate Free SSL using Let's EncryptMayeenul Islam
How to issue and activate Free SSL Certificate on a shared hosting from cPanel using SSH access, PHP ACME client, and cPanel SSL/TLS widget.
Get the Video here:
https://www.youtube.com/watch?v=bk868eeiN8w
Gentle introduction to Pyramid. Where it comes from, how simple it, how fast, how flexible and why the future will be pyramid shaped.
Made for pyconau 2011
Brad Williams, the co-author of Professional WordPress Plugin Development, gives his presentation on Intro to WordPress Plugin Development to the NYC WordPress Meetup group in March 2011.
Versão com GIFs:
https://docs.google.com/presentation/d/17M-jHlkAP5KPfQ4_Alck_wIsN2gK3dZNGfJR9Bi1L50/present
Códigos para instalação das dependências:
https://github.com/fdaciuk/talks/tree/master/2015/wordcamp-sao-paulo
En esta sesión Jorge Díaz (MVP) y Gonzalo Balladares (MVP) te mostrarán cómo puedes automatizar tareas rutinarias de mantenimiento y administración de tus sistemas utilizando Powershell con ejemplos prácticos de Administración de Servicios Windows, Active Directory, Exchange Server, Lync Server, Hyper-V y más
https://www.youtube.com/watch?v=Dv1bpmYV0vU
Channels is the most exciting thing to happen to Django since, well, Django! It is both an elegant and backwards compatible extension of the core Django request response model to allow direct support of WebSockets and lightweight async tasks. This talk will cover the current state of Channels, work through an asynchronous task example, touch on deployment and point towards other resources.
Introduction to WP-CLI: Manage WordPress from the command lineBehzod Saidov
These are the slides from a talk given at WordCamp Riverside 2017:
https://2017.riverside.wordcamp.org/session/introduction-to-wp-cli-manage-wordpress-from-the-command-line/
The topic is about powerful tool WP-CLI than can help WordPress developers or power users a lot.
If you manage multiple WordPress websites or multiple environments of a WordPress website, you probably have experienced situations where you need to go through exact same steps on multiple websites. Clicking through wp-admin screens to change settings becomes time consuming. WP-CLI can be used to automate those tasks with ease.
During my presentation I’ll introduce the audience with the command line and WP-CLI, then I’ll go through some of the tasks that can be easily done using this tool. I’ll demonstrate some tasks running them on a sample WordPress website running in local development environment. Demonstrations will include tasks like pulling back the database to lower environments (qa/staging) and rewriting it, managing users, plugins, etc.
How to Issue and Activate Free SSL using Let's EncryptMayeenul Islam
How to issue and activate Free SSL Certificate on a shared hosting from cPanel using SSH access, PHP ACME client, and cPanel SSL/TLS widget.
Get the Video here:
https://www.youtube.com/watch?v=bk868eeiN8w
Gentle introduction to Pyramid. Where it comes from, how simple it, how fast, how flexible and why the future will be pyramid shaped.
Made for pyconau 2011
Brad Williams, the co-author of Professional WordPress Plugin Development, gives his presentation on Intro to WordPress Plugin Development to the NYC WordPress Meetup group in March 2011.
Versão com GIFs:
https://docs.google.com/presentation/d/17M-jHlkAP5KPfQ4_Alck_wIsN2gK3dZNGfJR9Bi1L50/present
Códigos para instalação das dependências:
https://github.com/fdaciuk/talks/tree/master/2015/wordcamp-sao-paulo
En esta sesión Jorge Díaz (MVP) y Gonzalo Balladares (MVP) te mostrarán cómo puedes automatizar tareas rutinarias de mantenimiento y administración de tus sistemas utilizando Powershell con ejemplos prácticos de Administración de Servicios Windows, Active Directory, Exchange Server, Lync Server, Hyper-V y más
https://www.youtube.com/watch?v=Dv1bpmYV0vU
Channels is the most exciting thing to happen to Django since, well, Django! It is both an elegant and backwards compatible extension of the core Django request response model to allow direct support of WebSockets and lightweight async tasks. This talk will cover the current state of Channels, work through an asynchronous task example, touch on deployment and point towards other resources.
Introduction to WP-CLI: Manage WordPress from the command lineBehzod Saidov
These are the slides from a talk given at WordCamp Riverside 2017:
https://2017.riverside.wordcamp.org/session/introduction-to-wp-cli-manage-wordpress-from-the-command-line/
The topic is about powerful tool WP-CLI than can help WordPress developers or power users a lot.
If you manage multiple WordPress websites or multiple environments of a WordPress website, you probably have experienced situations where you need to go through exact same steps on multiple websites. Clicking through wp-admin screens to change settings becomes time consuming. WP-CLI can be used to automate those tasks with ease.
During my presentation I’ll introduce the audience with the command line and WP-CLI, then I’ll go through some of the tasks that can be easily done using this tool. I’ll demonstrate some tasks running them on a sample WordPress website running in local development environment. Demonstrations will include tasks like pulling back the database to lower environments (qa/staging) and rewriting it, managing users, plugins, etc.
It is actually possible to manage all of your WordPress tasks on plugins, themes, database, site migration, etc through command line interface using WP-CLI tool. Slides covers basic part on getting started with WP-CLI and letting you know how to manage each tasks easily and efficiently. This tool powers up your productivity and saves time that you spend on loading browser while doing your work.
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...Andrea Cardinali
WP-CLI è un ottimo strumento per abbattere i tempi di sviluppo e per automatizzare i task ripetitivi ed è un vero e proprio coltellino svizzero a disposizione dello sviluppatore. In questo talk parlerò di alcuni utilizzi avanzati e di come è possibile comandare i plugin realizzati attraverso WP-CLI
Talk tenuto durante il WordCamp Torino 2017- 8 Aprile 2017
WP-CLI is a great tool to cut down deployment time and to automate repetitive tasks. During the speech I'll talk about WP CLI and some of advanced tasks you can perform thanks to WP-CLI and its functionalities.
Talk @WordCamp Turin 2017
WordCamp Vancouver 2012 - Manage WordPress with Awesome using wp-cliGetSource
Manage WordPress with Awesome using wp-cli talk from WordCamp Vancouver 2012.
Does updating all your plugins by running `wp plugin update –all` sound too good to be true? Enter wp-cli, an open source WordPress management tool. Learn how to install it locally or globally on your host, perform common WordPress administration tasks, and expand its functionality with plugins of your own.
Presented by Mike Schroder (@GetSource/DH-Shredder)
WP-CLI is a great companion for developers who can leverage many of its features/functionality in their day-to-day development. In this session, I’ll give an introduction to WP-CLI, the basics command it provides and how we can use it. I will also discuss the other benefits, common useful commands in WP-CLI, installing external commands and a quick introduction to creating a custom command.
Like many others, WordPress has been my personal blogging tool for a long time. A powerful tool for easy publishing! That is what everyone wants.
Large sites like TechCrunch and TheNextWeb use it exactly for that reason. And more enterprises seem to discover it as good solution to their too-expensive publication tools. But keeping those WordPress instances running requires skills and knowledge.
Because of WordPress extendibility and its very active community, you can do this too. This tutorial will teach you how use Ansible, Composer, WP-CLI, WP REST API, and Elasticsearch can push WordPress from a personal blogging tool into an enterprise-worthy level application. Out with FTP based SCM ... in with automated deployment, dependency management, and utterly fast search.
Like many others, WordPress has been my personal blogging tool for a long time. A powerful tool for easy publishing! That is what everyone wants.
Large sites like TechCrunch and TheNextWeb use it exactly for that reason. And more enterprises seem to discover it as good solution to their too-expensive publication tools. But keeping those WordPress instances running requires skills and knowledge.
Because of WordPress extendibility and its very active community, you can do this too. This tutorial will teach you how use Ansible, Composer, WP-CLI, WP REST API, and Elasticsearch can push WordPress from a personal blogging tool into an enterprise-worthy level application. Out with FTP based SCM ... in with automated deployment, dependency management, and utterly fast search.
Manage WordPress with Awesome using wp cliGetSource
Manage WordPress with Awesome using wp-cli talk from WordCamp Vegas 2012.
Does updating all your plugins by running `wp plugin update –all` sound too good to be true? Enter wp-cli, an open source WordPress management tool. Learn how to install it locally or globally on your host, perform common WordPress administration tasks, and expand its functionality with plugins of your own.
Presented by Mike Schroder (@GetSource/DH-Shredder)
Wordpress y Docker, de desarrollo a produccionSysdig
Docker esta revolucionando cómo desplegamos nuestras aplicaciones. Desde el entorno de desarrollo hasta la puesta en producción.
Veremos las ventajas que nos aporta Docker para el desarrollo en WordPress, las herramientas y procesos desde el punto de vista de un desarrollador.
A la hora de mover nuestra aplicación WordPress a producción, presentaremos los retos que presenta y las ventajas que aportan herramientas de orquestación como Kubernetes.
Tanto si eres un desarrollador como si también tienes que gestionar los sistemas que alojan tu WordPress, saldrás de esta charla queriendo poner todos tus WordPress en contenedores.
How to use WP-CLI to manage your WordPress site via the command line. From basic management like installing & updating plugins and themes, to scripting a installation workflow, this tool is a WordPress DevOps' best friend.
How to use WP-CLI to manage your WordPress Installations. Using WP-CLI you can:
Install WordPress, update WordPress, install plugins, update plugins, database search and replace, create test posts and pages, create new plugins, manage comments, manage users, perform database imports/exports, and more.
A presentation given that the WordPress Melbourne User Group September 2013 Meetup (http://www.meetup.com/WordPress-Melbourne/events/112574042/).
Converting Your Dev Environment to a Docker Stack - php[world]Dana Luther
Heard a lot about docker but not sure where to start? Frustrated maintaining development VMs? In this presentation we will go over the simplest ways to convert your development environment over to a docker stack, including support for full acceptance testing with Selenium. We’ll then go over how to modify the stack to mimic your production/pre-production environment(s) as closely as possible, and demystify working with the containers in the stack.
WP-CLI is fantastically awesome, but did you know it’s surprisingly easy to make it even moreso? Come to this session and you’ll learn how to write your own WP-CLI commands, while also getting inspired by how we’ve used it at my agency to really speed up all our custom development work.
Delivered at WordCamp Minneapolis 2018.
WP-CLI is a great companion for developers who can leverage many of its features/functionality in their day-to-day development. In this session, I’ll give an introduction to WP-CLI, the basics command it provides, and how we can use it. I will also discuss the other benefits, common useful commands in WP-CLI, installing external commands, and a quick introduction to creating a custom command.
Similar to Take Command of WordPress With WP-CLI (20)
Understanding User Behavior with Google Analytics.pdfSEO Article Boost
Unlocking the full potential of Google Analytics is crucial for understanding and optimizing your website’s performance. This guide dives deep into the essential aspects of Google Analytics, from analyzing traffic sources to understanding user demographics and tracking user engagement.
Traffic Sources Analysis:
Discover where your website traffic originates. By examining the Acquisition section, you can identify whether visitors come from organic search, paid campaigns, direct visits, social media, or referral links. This knowledge helps in refining marketing strategies and optimizing resource allocation.
User Demographics Insights:
Gain a comprehensive view of your audience by exploring demographic data in the Audience section. Understand age, gender, and interests to tailor your marketing strategies effectively. Leverage this information to create personalized content and improve user engagement and conversion rates.
Tracking User Engagement:
Learn how to measure user interaction with your site through key metrics like bounce rate, average session duration, and pages per session. Enhance user experience by analyzing engagement metrics and implementing strategies to keep visitors engaged.
Conversion Rate Optimization:
Understand the importance of conversion rates and how to track them using Google Analytics. Set up Goals, analyze conversion funnels, segment your audience, and employ A/B testing to optimize your website for higher conversions. Utilize ecommerce tracking and multi-channel funnels for a detailed view of your sales performance and marketing channel contributions.
Custom Reports and Dashboards:
Create custom reports and dashboards to visualize and interpret data relevant to your business goals. Use advanced filters, segments, and visualization options to gain deeper insights. Incorporate custom dimensions and metrics for tailored data analysis. Integrate external data sources to enrich your analytics and make well-informed decisions.
This guide is designed to help you harness the power of Google Analytics for making data-driven decisions that enhance website performance and achieve your digital marketing objectives. Whether you are looking to improve SEO, refine your social media strategy, or boost conversion rates, understanding and utilizing Google Analytics is essential for your success.
Gen Z and the marketplaces - let's translate their needsLaura Szabó
The product workshop focused on exploring the requirements of Generation Z in relation to marketplace dynamics. We delved into their specific needs, examined the specifics in their shopping preferences, and analyzed their preferred methods for accessing information and making purchases within a marketplace. Through the study of real-life cases , we tried to gain valuable insights into enhancing the marketplace experience for Generation Z.
The workshop was held on the DMA Conference in Vienna June 2024.
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBrad Spiegel Macon GA
Brad Spiegel Macon GA’s journey exemplifies the profound impact that one individual can have on their community. Through his unwavering dedication to digital inclusion, he’s not only bridging the gap in Macon but also setting an example for others to follow.
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfFlorence Consulting
Quattordicesimo Meetup di Milano, tenutosi a Milano il 23 Maggio 2024 dalle ore 17:00 alle ore 18:30 in presenza e da remoto.
Abbiamo parlato di come Axpo Italia S.p.A. ha ridotto il technical debt migrando le proprie APIs da Mule 3.9 a Mule 4.4 passando anche da on-premises a CloudHub 1.0.
Italy Agriculture Equipment Market Outlook to 2027harveenkaur52
Agriculture and Animal Care
Ken Research has an expertise in Agriculture and Animal Care sector and offer vast collection of information related to all major aspects such as Agriculture equipment, Crop Protection, Seed, Agriculture Chemical, Fertilizers, Protected Cultivators, Palm Oil, Hybrid Seed, Animal Feed additives and many more.
Our continuous study and findings in agriculture sector provide better insights to companies dealing with related product and services, government and agriculture associations, researchers and students to well understand the present and expected scenario.
Our Animal care category provides solutions on Animal Healthcare and related products and services, including, animal feed additives, vaccination
3. Agenda
1. WP-CLI: What and Why
2. Getting Started
3. Commands
a. Mirroring the GUI
b. Behind the Scenes
4. Configuration
5. Packages
6. Writing Commands
4. What isWP-CLI?
WP-CLI is the official command line
interface for WordPress.
What is a command line interface?
A command-line interface…is a means of
program where the user issues commands to the
of successive lines of text. (Wikipedia)
11. WP-CLI Installation
1) Download wp-cli.phar
$ curl -O https://raw.githubusercontent.com/wp-cli/builds/
gh-pages/phar/wp-cli.phar
2) Confirm it works
$ php wp-cli.phar --info
3) Enable use of wp instead of php wp-cli.phar
$ chmod +x wp-cli.phar
$ sudo mv wp-cli.phar /usr/local/bin/wp
4) Confirm successful installation
$ wp --info
https://make.wordpress.org/cli/handbook/installing/
12. Navigation
pwd print working directory
ls list segments
(non-OS contents)
cd change directory
../ parent directory
/ system root
- last directory
~ home directory
Up and down arrow keys to review and
execute previous commands
Tab to autocomplete options (installation
required)
https://wp-cli.org/#tab-completions
14. Global Parameters
Perform operation against a remote server over SSH
--ssh=[<scheme>:][<user>@]<host|container>[:<port>][<path>]
Path to the WordPress files
--path=<path>
Suppress informational messages
--quiet
Prompt the user to enter values for all arguments
--prompt
https://make.wordpress.org/cli/handbook/config/#global-parameters
19. Themes
List themes
$ wp theme list
Install and activate a theme from wp theme repository
$ wp theme install twentynineteen --activate
Update themes
$ wp theme update twentynineteen
$ wp theme update twentynineteen twentyseventeen twentysixteen
$ wp theme update --all
https://developer.wordpress.org/cli/commands/theme/
20.
21. Combine Commands with Pipes
Update core, all plugins, and all themes
$ wp core update | wp plugin update --all | wp theme
update --all
22. Users
List users
$ wp user list
Create user
$ wp user create ann ann@example.com --porcelain --send-email
https://developer.wordpress.org/cli/commands/user/
23. Users
Reset user password
$ wp user reset-password john
$ wp user reset-password john@example.com ann@example.com
$ wp user reset-password 1 2 3
Delete user
$ wp user delete john --reassign=lynn
$ wp user delete john --yes
https://developer.wordpress.org/cli/commands/user/
24. Options
List site options
$ wp option list
Change site URL
$ wp option update siteurl http://new.siteurl.com
Change admin email
$ wp option update admin_email admin@siteurl.com
https://developer.wordpress.org/cli/commands/option/
25. Options
Change image thumbnail size
$ wp option update thumbnail_size_w 200 | wp option update
thumbnail_size_h 200 | $ wp media regenerate --yes
Block search engines, change site description and time zone,
close commenting
$ wp option update blog_public 0 | wp option update
blogdescription "My New Tagline" | wp option update gmt_offset
-7 | $ wp option update default_comment_status closed
https://codex.wordpress.org/Option_Reference/
26. Comments
List comments
$ wp comment list
Approve comment
$ wp comment approve 1337
Delete all spam comments
$ wp comment delete $(wp comment list --status=spam
--format=ids)
https://developer.wordpress.org/cli/commands/comment/
28. Site for Multisite Installations
List sites
$ wp site list
Create a site
$ wp site create --slug=example
Deactivate a site
$ wp site deactivate 123
Archive a site
$ wp site archive 123
https://developer.wordpress.org/cli/commands/site/
29. SuperAdmin
List super admins
$ wp super-admin list
Add a super admin
$ wp super-admin add username
Remove a super admin
$ wp super-admin remove username
https://developer.wordpress.org/cli/commands/super-admin/
33. User Capabilities
List a user’s capabilities
$ wp user list-caps 21
Add a capability to user
$ wp user add-cap johnsmith edit_product
Remove a capability to user
$ wp user remove-cap john@smith.com publish_newsletters
https://developer.wordpress.org/cli/commands/user/
34. Role Capabilities
List the capabilities of a role, sorted alphabetically
$ wp cap list 'author' | sort
Add a capability to a role
$ wp cap add author spectate
Remove a capability from a role
$ wp cap remove author spectate
https://developer.wordpress.org/cli/commands/cap/
35. Roles
Create a role
$ wp role create productadmin "Product Administrator"
Delete a role
$ wp role delete productadmin
Reset roles
$ wp role reset administrator
$ wp role reset administrator author contributor
$ wp role reset --all
https://developer.wordpress.org/cli/commands/role/
36. Posts and Pages
Generate posts
$ wp post generate --count=10
Generate pages with lorem ipsum
$ curl http://loripsum.net/api/5 | wp post generate
--post_type=page --count=10
https://developer.wordpress.org/cli/commands/post/
46. Scaffold PostTypes
Generate custom post type
$ wp scaffold post-type my-post-type-slug --label="My Post
Type" --textdomain="my-post-type"
Generate custom post type for a theme
$ wp scaffold post-type my-post-type-slug --label="My Post
Type" --theme=my-theme
Generate custom post type for a plugin
$ wp scaffold post-type my-post-type-slug --label="My Post
Type" --plugin=my-plugin
https://developer.wordpress.org/cli/commands/scaffold/post-type/
57. Database
Create database
$ wp db create
Reset current database
$ wp db reset --yes
Delete existing database
$ wp db drop --yes
https://developer.wordpress.org/cli/commands/db/
58. Site
Remove pages, posts, and custom post types
$ wp site empty --yes
Remove pages, posts, custom post types, and uploads
$ wp site empty --uploads --yes
https://developer.wordpress.org/cli/commands/site/
59. Database
Import database
$ wp db import wpdb.sql
Export database
$ wp db export
Open a MySQL console
$ wp db cli
https://developer.wordpress.org/cli/commands/db/
60. DatabaseWith mysqlcheck
Check database
$ wp db check
Optimize database
$ wp db optimize
Repair database
$ wp db repair
https://dev.mysql.com/doc/refman/8.0/en/mysqlcheck.html
61. Config
Create wp-config.php
$ wp config create --dbname=database-name --dbuser=db-user
--dbpass=db-password --dbhost=hostname --dbprefix=prfx_
Set constants and variables
$ wp config set WP_DEBUG true --raw
Change salt keys
$ wp config shuffle-salts
https://developer.wordpress.org/cli/commands/config/
62. Search and Replace
Search for staging URL and replace with production URL
$ wp search-replace 'http://example.dev' 'http://example.com'
--dry-run
Search/replace to a SQL file without transforming the database
$ wp search-replace 'http://example.dev' 'http://example.com'
--export=database.sql
Run case-insensitive regex search/replace operation
$ wp search-replace '[foo id="([0-9]+)"' '[bar id="1"' --
regex --regex-flags='i'
https://developer.wordpress.org/cli/commands/search-replace/
66. WP-Cron
List scheduled cron events
$ wp cron event list
Schedule a new cron event
$ wp cron event schedule cron_test
Test that cron runs successfully
$ wp cron test
https://developer.wordpress.org/cli/commands/cron/
78. Packages
List installed packages
$ wp package list
Install a package
$ wp package install package-slug
Update a package
$ wp package update package-slug
Uninstall a package
$ wp package uninstall package-slug
https://developer.wordpress.org/cli/commands/package/
79. Doctor
Install
$ wp package install git@github.com:wp-cli/doctor-command.git
Get list of checks wp doctor can perform
$ wp doctor list
Perform checks
$ wp doctor check core-verify-checksums
$ wp doctor check core-verify-checksums file-eval
php-in-uploads
$ wp doctor check --all
https://github.com/wp-cli/doctor-command
BEFORE WE START: Who is familiar with command line? Who is using WP-CLI?
1) Lot of info
Slides
2) Firehose
Helicopter tour
Scope
Points of interest
Professionally for 11 years
Started with content and design, moving into development
where I’m working happily these days.
1. Background
2. Basic Installation
3. Bulk of preso
4. Not required by helpful
5. Go over a couple packages to extend WP-CLI.
6. Touch on Writing Commands
Stand-alone replacement for the GUI
Anything in the GUI in the CLI, except uploading files
We have this GUI…
1.
a. Replaces GUI interactions with no browser refresh
b. Bundle tasks together
c. Use or write packages
2.
a. Plugin, phpMyAdmin, hosting control panel
b. Not switching taking up your time
Requirements, Installation, Navigation, Syntax, Global parameters
1. Windows support To borrow a phrase, “UNIX is a requirement that begins where requirement ends.”
4. Choice of terminal apps. PuTTY GUI
Full-service hosting,
Good news.
Bad news: Doesn’t mean they support everything
***non-UNIX servers or Git, Composer, Homebrew, Docker are supported and require their own approaches.
Tight rope > balance beam
If you’re new to command line, good place to start.
Get a feel for executing commands
Learn how to navigate when you can’t see everything at once
Won’t break anything.
EXAMPLES
“If you know WP, you know what these commands do”
Appreciate Hierarchical structure: wp = tool, command = area, subcommand =what you’re doing
Flavor Efficiency: Compare examples with GUI
Argument coming into play
We also have global parameters to help us along
--prompt, requires read times, cut the keystrokes in half
1. List includes names, status (activated), update availability, version
1. List includes names, status (activated), update, version
2. As we’ve seen
3.
We’ve learned 3 commands.
Might want to start combining
One command to update all the thing
1. username, display name, email, reg date/time, role
2. --porcelain suppressed password, so it doesn’t end up in your bash history
2. String together a bunch of commands you want to run after we’ve created a new WP install
WAIT Add a post, edit a page, add a widget to sidebar, assign a menu to location
I’ll leave some of those things for your own discovery.
4. Last line to keep password from logging in bash history.
What I was saying before about full-service hosts
5. Note May not be able to create db with full-service hosting.
6. Your mileage may vary
***Anyone know of full-service host that allows creating db at CL
*** LIST
** Assign capabilities, as previous
2. Delete role reverts user to previous role
3. Reset remove changes to capabilities
Format-ids not required, but with get multiple error messages
So, within areas we ordinarily work with in the GUI, we have deeper capabilities in the CLI
We also have commands not associated with GUI commands
***Themes, plugins, blocks, post types, taxonomies
Child theme: includes style.css, function.php (enqueues scripts and styles), .editorconfig
Registering post type > split to make image more readable
Registering post type > split to make image more readable
Creating custom messages
Handy things for theme and plugin dev
Reset removes all tables, sets back to pre-install
Drop deletes the db
Use mysqlcheck utility to perform table maintenance
Outputs results per table
Check checks for errors
Optimize optimizes (incl. --optimize=true)
Repair can fix almost anything except unique keys that aren't unique. (incl. --repair=true)
As we’ve seen
… without opening a file
S/R will work on serialized data, but not inside a serialized object
List
Update
Think about Flush
Flush your blessed cache
No, flush will not on CloudFlare
List: shows hook, time (local and GMT), and recurrence rate
That’s a peek behind the scenes.
1. WC-CLI
That’s the beginning
Long commands, you may want more efficiency.
Early point of verbose commands.
1) Create pairs
***@ALL alias When you’re doing this WP-CLI is setting up an @all alias
Now you’re really updating all the things
Or one command to rule them all
Dare I say one command to update them all
Don’t let the power go to your head
4. Where command line configuration is stored in config.yml
2. + 3. file inside the current working directory (or upwards)
so you can fine-tune config to your needs
While we’re talking about being efficient
***LIST!!!
***LIST
Diagnoses problems within WordPress.
Checking security, performance, configuration
**Helps identify where WordPress is slow.
Look for target page for stage??
Look up hook for specifics
Remind yourself #2
With spotlight, we’re getting four hooks of interest
Used to be a repo for packages
Check GitHub
If you are inspired…
Try your hand
We have a Scaffold Package command
Keep track of your author/packagename to find it