Title: WP-CLI
Author: WordPress.org
Published: ഏപ്രിൽ 22, 2026

---

# WP-CLI: Every action, scriptable.

The command line for WordPress. No browser required.

[Install WP-CLI](https://make.wordpress.org/cli/handbook/guides/installing/)

[Browse commands](https://developer.wordpress.org/cli/commands/)

![](https://wordpress.org/files/2026/04/wp-cli-header-image.jpg)

## Scriptable by design

Anything you can do in the WordPress admin, you can do from the terminal. Install
and update plugins, import content, create users, run search-replace across a database,
rotate keys, manage multisite networks. Bundle any of it into a script, a cron job,
or a deploy step. WP-CLI turns WordPress into something you can automate.

[Get started with WP-CLI](https://make.wordpress.org/cli/handbook/guides/quick-start/)

[Read the handbook](https://make.wordpress.org/cli/handbook/)

![](https://wordpress.org/files/2026/04/plugins-1.png)

wp plugin

Install, activate, update

![](https://wordpress.org/files/2026/04/themes-3.png)

wp theme

Manage themes and child themes

![](https://wordpress.org/files/2026/04/export.png)

wp db

Export, import, search-replace

![](https://wordpress.org/files/2026/04/user.png)

wp user

Create, update, reset passwords

![](https://wordpress.org/files/2026/04/post.png)

wp post

Bulk create, edit, delete content

![](https://wordpress.org/files/2026/04/core.png)

wp core

Install, update, verify WordPress

![](https://wordpress.org/files/2026/04/site.png)

wp site

Manage multisite networks

![](https://wordpress.org/files/2026/04/scheduled.png)

wp cron

Inspect and run scheduled events

## Automate anything

WP-CLI fits wherever you script. Bake it into a deploy pipeline to migrate a database
between environments. Wire it into a GitHub Action to verify core integrity on every
pull request. Run it from cron to rotate keys, prune transients, or regenerate thumbnails
at 3 a.m.

[See automation recipes](https://developer.wordpress.org/cli/commands/)

    ```wp-elements-d62776dfc4c6d4823507a50ee259e0a1
    wp db export backup.sql
    wp search-replace 'https://staging.example.com' 'https://example.com' --all-tables
    wp cache flush
    ```

    ```wp-elements-5e17e5a223899dc8b7324d2c212e0c28
    WP_CLI::add_command( 'hello', function () {
        WP_CLI::success( 'Hello from WP-CLI!' );
    } );
    ```

## Extend it

WP-CLI is built to be extended. Write a custom command in a few lines of PHP and
ship it as a plugin — or browse the community package index for one that already
does what you need.

[Write a custom command](https://make.wordpress.org/cli/handbook/guides/commands-cookbook/)

[Browse packages](https://packagist.org/search/?type=wp-cli-package)

## Maintained by the WordPress community

WP-CLI has shipped continuously since 2011, maintained by volunteers from across
the WordPress ecosystem. Every release ships under public governance, and contributions
take many forms — triage, docs, translation, command authorship, tests.

[Contribute](https://make.wordpress.org/cli/)

[Read the release notes](https://github.com/wp-cli/wp-cli/releases)

## Built for what's next

The future of web management is autonomous, and WP-CLI is designed to lead the way.
Beyond serving as a powerful interface for developers, it provides the standardized,
command-driven architecture that AI agents and LLMs need to interact reliably with
WordPress. By leveraging the Abilities API, AI connectors, and Model Context Protocol(
MCP) support, WP-CLI turns WordPress into a fully agent-ready environment. Whether
you are automating routine maintenance or building complex agentic workflows, WP-
CLI provides the stable, programmable foundation required for the next generation
of intelligence.

[Explore output formats](https://developer.wordpress.org/cli/commands/#global-parameters)

[Read the handbook](https://developer.wordpress.org/cli/commands/)

[Star on GitHub](https://github.com/wp-cli/wp-cli)

![](https://wordpress.org/files/2026/04/WordPress_ASCII_texture.jpg)