# wp-cli/wp-cli

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/wp-cli-wp-cli).**

5,028 stars · 1,016 forks · PHP · mit

## Links

- GitHub: https://github.com/wp-cli/wp-cli
- Homepage: https://wp-cli.org/
- awesome-repositories: https://awesome-repositories.com/repository/wp-cli-wp-cli.md

## Topics

`cli` `framework` `hacktoberfest` `php` `wordpress` `wp-cli`

## Description

WP-CLI is a command-line interface and automation tool for managing WordPress sites and databases through a terminal instead of a web browser. It functions as an extensible framework for executing site maintenance, administrative updates, and developer tooling via scripts and scheduled jobs.

The tool provides specialized capabilities for database management, including search-and-replace operations, imports, and exports to modify or migrate site data. It also serves as a programmable interface that allows for the integration of AI agents to execute command-driven tasks.

The system supports the administration of plugins, themes, and user accounts. Users can extend the core functionality by registering custom commands or installing community packages to perform specialized development tasks.

## Tags

### Content Management & Publishing

- [Command Line Interfaces](https://awesome-repositories.com/f/content-management-publishing/multi-site-management-systems/wordpress-management/command-line-interfaces.md) — WP-CLI performs all administrative actions on a site through terminal commands without requiring a web browser. ([source](https://wp-cli.org/))
- [WordPress Management](https://awesome-repositories.com/f/content-management-publishing/multi-site-management-systems/wordpress-management.md) — Running repeatable WordPress maintenance tasks inside shell scripts, deployment pipelines, or scheduled cron jobs.
- [Site Automation Tools](https://awesome-repositories.com/f/content-management-publishing/multi-site-management-systems/wordpress-management/site-automation-tools.md) — Integrates site management commands into scripts, deployment pipelines, cron jobs, and CI workflows.
- [Content Import and Export](https://awesome-repositories.com/f/content-management-publishing/content-import-and-export.md) — WP-CLI transfers site content and data between environments using the command line. ([source](https://cdn.jsdelivr.net/gh/wp-cli/wp-cli@main/README.md))
- [Content Migration Tools](https://awesome-repositories.com/f/content-management-publishing/content-management-systems/content-migration-tools.md) — Provides command-line export and import commands for moving WordPress content between installations.
- [Lazy Bootstrap Frameworks](https://awesome-repositories.com/f/content-management-publishing/multi-site-management-systems/wordpress-management/lazy-bootstrap-frameworks.md) — The framework delays loading WordPress core until a command explicitly requires it, reducing overhead.
- [Multisite Network Management](https://awesome-repositories.com/f/content-management-publishing/multisite-network-management.md) — WP-CLI sets up and manages a network of subsites within a single WordPress installation. ([source](https://cdn.jsdelivr.net/gh/wp-cli/wp-cli@main/README.md))

### Development Tools & Productivity

- [CLI Command Extensions](https://awesome-repositories.com/f/development-tools-productivity/cli-command-extensions.md) — WP-CLI allows registering any callable class, function, or closure as a new command, and supports extending the command index with pre-built commands from plugins or community packages. ([source](https://cdn.jsdelivr.net/gh/wp-cli/wp-cli@main/README.md))
- [CLI Command Registrars](https://awesome-repositories.com/f/development-tools-productivity/cli-command-frameworks/cli-command-registrars.md) — Adding new commands to the terminal tool by writing PHP code in plugins or installing community-built packages.
- [PHPDoc-Based Command Parsers](https://awesome-repositories.com/f/development-tools-productivity/command-argument-parsers/phpdoc-based-command-parsers.md) — Commands read PHPDoc annotations on callables to automatically generate argument and subcommand definitions.
- [Command Line Extensions](https://awesome-repositories.com/f/development-tools-productivity/command-line-extensions.md) — Provides an extensible framework for registering custom commands and plugins from community packages.
- [Plugin Package Managers](https://awesome-repositories.com/f/development-tools-productivity/package-installers/command-based-package-installation/plugin-package-managers.md) — The `wp package` subcommand downloads, installs, and activates community command bundles from a registry.
- [Shell Completion](https://awesome-repositories.com/f/development-tools-productivity/shell-completion.md) — Shell completion is implemented by writing a wp-completion.bash file that is sourced via a symlink.
- [Symlink-Aware](https://awesome-repositories.com/f/development-tools-productivity/shell-completions/symlink-aware.md) — WP-CLI suggests available commands and arguments automatically as you type in shell environments. ([source](https://cdn.jsdelivr.net/gh/wp-cli/wp-cli@main/README.md))
- [Method-Based Subcommand Mappings](https://awesome-repositories.com/f/development-tools-productivity/subcommand-registration/cargo-subcommand-integrations/method-based-subcommand-mappings.md) — Each public method on a command class becomes a subcommand, inheriting the class’s argument defaults.

### Software Engineering & Architecture

- [Module and Theme Lifecycle Managers](https://awesome-repositories.com/f/software-engineering-architecture/integration-extensibility/extensibility/plugin-architectures/developer-authoring-interfaces/custom-module-implementations/module-functionality-extenders/module-and-theme-removal/module-and-theme-lifecycle-managers.md) — Installs, activates, updates, and removes WordPress plugins and themes from the command line. ([source](https://cdn.jsdelivr.net/gh/wp-cli/wp-cli@main/README.md))
- [Command Lifecycle Hooks](https://awesome-repositories.com/f/software-engineering-architecture/lifecycle-event-hooks/command-lifecycle-hooks.md) — Plugins can inject behavior at before_invoke, after_invoke, and other event points.

### Data & Databases

- [WordPress Content Migrations](https://awesome-repositories.com/f/data-databases/data-import-and-export/wordpress-content-migrations.md) — Transferring posts, pages, and media between WordPress installations using command-line export and import commands.
- [Database Operations](https://awesome-repositories.com/f/data-databases/database-management-systems/database-systems-management/database-operations.md) — Performing search-and-replace on database content and clearing cached data without logging into the admin dashboard.
- [Database Search and Replace Operations](https://awesome-repositories.com/f/data-databases/text-pattern-matching/text-search-and-replace/database-search-and-replace-operations.md) — WP-CLI executes search and replace operations and deletes cached data directly in the database. ([source](https://cdn.jsdelivr.net/gh/wp-cli/wp-cli@main/README.md))

### DevOps & Infrastructure

- [WordPress](https://awesome-repositories.com/f/devops-infrastructure/release-automation/ci-pipeline-integrators/wordpress.md) — WP-CLI integrates site management commands into scripts, deployment pipelines, cron jobs, and CI workflows for unattended operation. ([source](https://wp-cli.org/))
