WP-CLI
Running WP-CLI commands safely against installations we do not own
WP-CLI is a PHP-based command line interface for interacting with WordPress installations.
Running WP-CLI commands
- Always use
--dry-runto test operations that affect databases. - Consider using
--promptto see all available arguments. - Use
wp help [command]for command-specific documentation.
Custom WP-CLI commands
This section was never written. The source document in how-we-work ended with this heading and nothing under it, so it is carried here as a draft rather than presented as a settled standard. See what still needs writing.
Related
-
WordPress PHP
PHPCS setup, namespacing, bootstrapping and the defensive habits we expect in PHP
-
Internationalization
Making every user-facing string translatable, and the files that carry the translations