דלג לתוכן הראשי

WP-CLI Reference

Gratis AI Agent מספק משפחת פקודות wp gratis-ai-agent לצורך ביצוע בדיקות ביצועים (benchmarking) של המערכת, ניהול יכולות (abilities), ושליפת סטטוס המערכת מקוונטרליין. כל הפקודות דורשות WP-CLI 2.0 ומעלה.

Installation

פקודות ה-WP-CLI נרשמות אוטומטית כאשר ה-plugin פעיל. ניתן לוודא זאת באמצעות:

wp gratis-ai-agent --info

wp gratis-ai-agent benchmark

מריץ את חבילת בדיקות הביצועים של יכולות המערכת (Agent Capabilities benchmark suite) — אוסף של פרומפטים מורכבים ורב-שלביים המפעילים את כל מגוון היכולות. השתמש בכלי זה כדי להעריך את ביצועי המודל, להשוות ספקי AI שונים, או לאמת חבילות יכולות לפני פריסה בסביבת הייצור.

Synopsis

wp gratis-ai-agent benchmark [--question=<id>] [--provider=<provider>] [--model=<model>] [--output=<format>] [--save]

Options

OptionDescription
--question=<id>הפעלת שאלה בודדת לבדיקה לפי מזהה, במקום כל החבילה המלאה
--provider=<provider>דריסה של ספק ה-AI המוגדר להרצה זו (לדוגמה: anthropic, openai)
--model=<model>דריסה של המודל המוגדר להרצה זו (לדוגמה: claude-opus-4-6, gpt-4o)
--output=<format>פורמט פלט: table (ברירת מחדל), json, csv
--saveשמירת תוצאות הבדיקה במסד הנתונים לצורך השוואה היסטורית

Examples

הפעלת חבילת הבדיקות המלאה עם ספק ומודל הנוכחיים:

wp gratis-ai-agent benchmark

הפעלת שאלה בודדת (q-restaurant-website) והפלט כ-JSON:

wp gratis-ai-agent benchmark --question=q-restaurant-website --output=json

הפעלה מול מודל ספציפי ושמירת התוצאות:

wp gratis-ai-agent benchmark --model=claude-opus-4-6 --save

Output

הבדיקה מפיקה שורה אחת לכל שאלה עם העמודות הבאות:

ColumnDescription
IDמזהה השאלה
Descriptionסיכום קצר של תרחיש הבדיקה
Scoreמעבר/כישלון או ציון מספרי (0–100)
Abilities Usedרשימה מופרדת בפסיקים של היכולות שנקראו
Tokensסך הטוקנים שנצרכו
Durationזמן שעון בשניות
ID                       Description                         Score  Abilities Used               Tokens  Duration
q-portfolio-site Create a portfolio CPT with tags 100 register_post_type, reg... 4821 18.3s
q-restaurant-website Build a full restaurant website 92 create_site_plan, execut... 12430 54.1s
q-dark-mode-theme Apply a dark theme preset 100 apply_theme_json_preset 986 4.2s
...

Benchmark Questions

החבילה ברירת המחדל כוללת:

IDScenario
q-portfolio-siteיצירת Custom Post Type (CPT) פורטפוליו עם טקסונומיה של קטגוריות פרויקטים והרשמה לתבנית בלוק
q-restaurant-websiteבניית אתר מסעדה מלא עם CPT למენი, טופס הזמנות וניווט
q-dark-mode-themeיישום תבנית עיצוב Dark Mode והזרקת צבעי מותג
q-nav-builderיצירת תפריט ניווט ראשי בן ארבעה פריטים עם תפריט נפתח מקונן
q-options-roundtripקריאה, שינוי ושחזור של מערך אפשרויות (options) של WordPress
q-ability-installגילוי והתקנת חבילת היכולות המתאימה ביותר למקרה שימוש שפורט

ניתן להירשם לשאלות נוספות באמצעות ה-filter gratis_ai_agent_benchmark_questions.


wp gratis-ai-agent abilities

מנהל יכולות וחבילות יכולות מותקנות.

wp gratis-ai-agent abilities list

מציג את כל היכולות הרשומות, המקור שלהן (ליבה או חבילה), והסטטוס הנוכחי שלהן.

wp gratis-ai-agent abilities list [--format=<format>]

Options

OptionDescription
--format=<format>פורמט פלט: table (ברירת מחדל), json, csv

Example output

Ability                   Source                          Status
register_post_type gratis-ai-agent (core) active
list_post_types gratis-ai-agent (core) active
delete_post_type gratis-ai-agent (core) active
register_taxonomy gratis-ai-agent (core) active
inject_custom_css gratis-ai-agent (core) active
apply_theme_json_preset gratis-ai-agent (core) active
create_product gratis-ai-agent-woocommerce active

wp gratis-ai-agent abilities install

מוריד ומפעיל חבילת יכולות מהרישום.

wp gratis-ai-agent abilities install <slug>

Arguments

ArgumentDescription
<slug>ה-slug של חבילת היכולות, לדוגמה: gratis-ai-agent-woocommerce

Example

wp gratis-ai-agent abilities install gratis-ai-agent-woocommerce
Success: Installed gratis-ai-agent-woocommerce. Added 3 abilities: create_product, update_pricing, manage_inventory.

wp gratis-ai-agent abilities disable

מכבה יכולת ספציפית מבלי להסיר את החבילה. שימושי להגבלת היקף פעולות המערכת באתר נתון.

wp gratis-ai-agent abilities disable <ability>

Example

wp gratis-ai-agent abilities disable delete_post_type
Success: Ability 'delete_post_type' disabled.

wp gratis-ai-agent abilities enable

מאפשר מחדש יכולת שהוכיבה בעבר.

wp gratis-ai-agent abilities enable <ability>

wp gratis-ai-agent status

מציג את תצורת המערכת הנוכחית ואת סטטוס החיבור.

wp gratis-ai-agent status

Example output

Plugin Version:    1.4.0
AI Provider: Anthropic
Model: claude-sonnet-4-6
Provider Status: Connected
Abilities Loaded: 24
Benchmark Results: 3 saved runs (last: 2026-04-15)
Options Blocklist: 18 entries

wp gratis-ai-agent logs

מציג פעילות עדכנית של המערכת מיומן ה-debug.

wp gratis-ai-agent logs [--last=<n>] [--level=<level>] [--ability=<ability>]

Options

OptionDescription
--last=<n>הצגת N רשומות יומן אחרונות. ברירת מחדל 50
--level=<level>סינון לפי רמה: info, warning, error
--ability=<ability>סינון לפי שם היכולת

Example

wp gratis-ai-agent logs --last=20 --level=error

wp gratis-ai-agent reset

מאפס את מצב המערכת: מנקה CSS שהוזרק, מסיר CPTs וטקסונומיות שנרשמו על ידי המערכת, מאפס סגנונות גלובליים ומרוקן את מטמון האפשרויות של המערכת. אינו מסיר את ה-plugin או את ההגדרות שלו.

wp gratis-ai-agent reset [--yes]

הוסף --yes כדי לדלג על הודעת האישור.

wp gratis-ai-agent reset --yes
Success: Agent state reset. Cleared: 2 post types, 1 taxonomy, custom CSS, global styles overrides.

Exit Codes

כל הפקודות יוצאות עם הקוד 0 בהצלחה. קודי יציאה שאינם אפס:

CodeMeaning
1שגיאה כללית (ראה הודעת שגיאה)
2כשל בחיבור לספק (Provider connectivity failure)
3יכולת לא נמצאה (Ability not found)
4שאלה לבדיקה לא נמצאה (Benchmark question not found)