Title: WP-CLI
Author: WordPress.org
Published: 22 أبريل، 2026

---

# WP-CLI: كل إجراء، قابل للبرمجة.

سطر الأوامر لووردبريس. لا حاجة لمتصفح.

[تنصيب WP-CLI](https://make.wordpress.org/cli/handbook/guides/installing/)

[تصفّح الأوامر](https://developer.wordpress.org/cli/commands/)

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

## مُصمَّم ليكون قابلاً للبرمجة النصية

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-CLI](https://make.wordpress.org/cli/handbook/guides/quick-start/)

[اقرأ الكُتيب](https://make.wordpress.org/cli/handbook/)

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

wp plugin

تنصيب وتفعيل وتحديث

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

wp theme

إدارة القوالب والقوالب الإبن (الفرعية)

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

wp db

تصدير واستيراد واستبدال بحثي

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

wp user

إنشاء وتحديث وإعادة تعيين كلمات المرور

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

wp post

إنشاء وتحرير وحذف المحتوى بشكل مجمّع

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

wp core

تنصيب وتحديث والتحقق من ووردبريس

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

wp site

إدارة شبكات المواقع المتعددة

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

wp cron

افحص الأحداث المجدولة وشغّلها

## أتمتة أي شيء

يتناسب WP-CLI أينما كنت تكتب نصوصًا برمجية. أدمجه في خط أنابيب النشر لترحيل قاعدة
بيانات بين البيئات. وصّله في إجراء GitHub للتحقق من سلامة النواة عند كل طلب سحب.
شغّله من cron لتدوير المفاتيح، أو تقليم العابرات، أو إعادة إنشاء الصور المصغرة في
الثالثة صباحًا.

[شاهد وصفات الأتمتة](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!' );
    } );
    ```

## وسّعه

صُمّم WP-CLI ليكون قابلاً للتوسع. اكتب أمرًا مخصصًا في بضعة أسطر من PHP وأصدره كإضافة—
أو تصفّح فهرس حزم المجتمع للعثور على ما يلبي احتياجك بالفعل.

[اكتب أمرًا مخصصًا](https://make.wordpress.org/cli/handbook/guides/commands-cookbook/)

[تصفّح الحزم](https://packagist.org/search/?type=wp-cli-package)

## يحافظ عليه مجتمع ووردبريس

صدر WP-CLI باستمرار منذ عام 2011، ويحافظ عليه متطوعون من جميع أنحاء منظومة ووردبريس
المتكاملة. يُصدر كل إصدار تحت حوكمة عامة، وتتخذ المساهمات أشكالًا عديدة — فرز، وثائق،
ترجمة، تأليف أوامر، اختبارات.

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

[اقرأ ملاحظات الإصدار](https://github.com/wp-cli/wp-cli/releases)

## مُصمّم للمستقبل

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.

[استكشف صيغ الإخراج](https://developer.wordpress.org/cli/commands/#global-parameters)

[اقرأ الكُتيب](https://developer.wordpress.org/cli/commands/)

[ضع نجمة على GitHub](https://github.com/wp-cli/wp-cli)

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