WP-CLI: Every action, scriptable.
The command line for WordPress. No browser required.

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.

wp plugin
Installera, aktivera, uppdatera

wp theme
Hantera teman och barnteman

wp db
Exportera, importera samt sök och ersätt

wp user
Skapa, uppdatera och återställ lösenord

wp post
Skapa, redigera och ta bort innehåll med masskommandon

wp core
Installera, uppdatera och kontrollera WordPress integritet

wp site
Hantera multisite-nätverk

wp cron
Inspektera och kör schemalagda händelser
Automatisera allt möjligt
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.
wp db export backup.sql
wp search-replace 'https://staging.example.com' 'https://example.com' --all-tables
wp cache flush
WP_CLI::add_command( 'hello', function () {
WP_CLI::success( 'Hello from WP-CLI!' );
} );
Utöka det
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.
Underhålls av WordPress-gemenskapen
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.
Byggt för framtiden
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.

