~/talk

Make WP_CLI Work For You – Extending WP_CLI With Custom Commands

Talkat WordCamp US 2015 · 2015-12-04..12-06· [wordpress, developer-experience]
links:none on file
slides:none on file

Shows how to add WP-CLI commands with the actual API: wp_cli::add_command and a class with an invoke method, handling positional args vs associative args, and building subcommands. Demonstrates using ElasticPress to index 250,000 posts in minutes, progress bars for long runs, built‑in formats (JSON, table, CSV), and utilities like locate_wp_config, write_csv and launch_editor. Covers error vs success handling (exit behavior), avoiding auto‑registration for performance, parse_url checks, Windows differences, and how to use path to run commands outside plugins.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:04What is WP_CLI
  3. 8:24Writing your first command
  4. 10:31Adding arguments and options
  5. 13:18Subcommands and organization
  6. 15:23Advanced command tips
  7. 17:54Output formatting and progress
  8. 21:24Utility functions and cross-platform support
  9. 24:10Running commands without plugins
  10. 26:05Q&A
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.