Idi na sadržaj
WordPress.org

Bosanski

  • Teme
  • Plugini
  • News
  • Podrška
  • O nama
  • Projekti
  • Get WordPress
Get WordPress

WP-CLI: Every action, scriptable.

The command line for WordPress. No browser required.

Install WP-CLI
Browse commands

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
Read the handbook

wp plugin

Install, activate, update

wp theme

Manage themes and child themes

wp db

Export, import, search-replace

wp user

Create, update, reset passwords

wp post

Bulk create, edit, delete content

wp core

Install, update, verify WordPress

wp site

Manage multisite networks

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
wp db export backup.sql
wp search-replace 'https://staging.example.com' 'https://example.com' --all-tables
wp cache flush