You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--profile <name>`| اختيار ملف السياسة لهذا المستودع. يقبل `minimal` أو `standard` (الافتراضي). قيمة غير صالحة تُجهض قبل أي بناء أو كتابة `.forge/` أو دمج. |
29
+
|`--no-settings`| تخطّي دمج ملف `~/.claude/settings.json` العام كليًا — تُكتب فقط الإعدادات الخاصة بالمستودع. |
30
+
|`--remove-settings`| عكس دمج إعدادات سابق. تُزال الخطّافات والأذونات وسطر الحالة ذات شكل Forge وعلامة `_forge`؛ تُكتب نسخة احتياطية موسومة بالوقت أولًا، وتُحفظ مدخلاتك. يُستدعى أيضًا من `install.sh --uninstall`. |
31
+
|`--settings-only`| دمج الإعدادات العامة فقط — لا يمسّ المستودع. يستخدمه `install.sh` لتوصيل الخطّافات والأذونات. |
32
+
33
+
إذا رُفض دمج الإعدادات أو أخفق، يفشل `forge init` بخروج 1 ويكتب السبب إلى stderr بدلًا
34
+
من الإبلاغ عن النجاح.
35
+
36
+
### ملفات السياسة
37
+
38
+
تختار `--profile` مجموعة القواعد التي يُصرّفها `forge sync` إلى إعداد كل أداة الأصلي.
39
+
يُدعم ملفان اثنان فقط:
40
+
41
+
-**`standard`** (الافتراضي) — الحزمة الكاملة: قواعد الذاكرة المشتركة، وتحليل الأثر،
42
+
ومجموعة الخطّافات الحارسة الكاملة.
43
+
-**`minimal`** — مجموعة قواعد أخفّ للمستودعات الصغيرة أو تفريعات المساهمين.
44
+
45
+
الأسماء الموروثة `web-app` و`backend-service` و`library` و`regulated` أسماء بديلة
46
+
مهجورة لـ `standard`. لا تزال تعمل: يُحذّر `forge init` مرة واحدة، ويحفظ `standard`،
47
+
وتتزامن الإعدادات الحالية التي تحمل اسمًا موروثًا كما لو كانت standard. على المستودعات
48
+
الجديدة استخدام `standard` مباشرةً. أي قيمة أخرى غير صالحة وتُجهض قبل أن يمسّ Forge
49
+
المستودع.
50
+
51
+
```bash
52
+
forge init --profile minimal # leaner ruleset
53
+
forge init --no-settings # per-repo only, skip the global merge
54
+
forge init --remove-settings # reverse a past global merge
55
+
```
56
+
20
57
## `forge sync`
21
58
22
59
إعادة تصريف المصدر القانوني إلى ملفات الإعداد الأصلية لكل أداة.
Copy file name to clipboardExpand all lines: mintlify/ar/cli/overview.mdx
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "نظرة عامة على CLI"
3
-
description: "كل أمر من أوامر forge مُصنَّف حسب المجموعات Core وMemory وSubstrate وQuality وConfig — سطح الأوامر بيانات، ويتم توفيقه مع التوثيق بفحص انحراف صارم."
3
+
description: "كل أمر من أوامر forge مُصنَّف حسب المجموعات Core وMemory وSubstrate وQuality وConfig، إضافةً إلى متغيرات البيئة التي تتحكم في التنفيذ والمخرجات."
4
4
---
5
5
6
6
يُعرَّف سطح أوامر `forge` كبيانات (`src/commands.js`)، ويتم توفيقه مع التوثيق عبر
@@ -39,6 +39,17 @@ description: "كل أمر من أوامر forge مُصنَّف حسب المجم
39
39
التجارية ومقاييس الثقة. `NO_COLOR` يوقف اللون، `FORCE_COLOR=1` يُفرضه.
|`FORGE_ENFORCE=1`| تحويل أقوى إشارات الركيزة الإرشادية إلى حجب صارم. |
47
+
|`FORGE_GUARD_STRICT=1`| ترقية تحذير `DEGRADED` لمُنقّي الأسرار إلى خروج حاجب. افتراضيًا، يطبع فشل الإخفاء `secret redaction DEGRADED` إلى stderr ويترك المخرَج يمرّ؛ الوضع الصارم يرفض إصدار أي شيء لم يستطع المنقّي تنظيفه كاملًا. استخدمه في CI أو على الأجهزة المشتركة حيث سطر غير مُخفَى أسوأ من أمر فاشل. |
48
+
|`FORGE_NO_UPDATE_CHECK=1`| إسكات إشعار "commits behind upstream" في `forge doctor`. |
49
+
|`FORGE_NO_HINT=1`| كتم تلميح init المُعروض لمرة واحدة الذي يدفعك إلى تشغيل `forge init`. |
50
+
|`FORGE_VERBOSE=1`| إظهار عنوان الأمر (`Forge <cmd> — …`) المخفي افتراضيًا. |
51
+
|`FORGE_EMBED=1`| تفعيل طبقة التضمينات لاسترجاع الذاكرة (يبقى MinHash افتراضًا بدون تبعيات). |
52
+
42
53
<Note>
43
54
شغّل `forge --help` للقائمة المحدَّثة دائمًا، أو `forge catalog` لفهرس البدء لكل
Copy file name to clipboardExpand all lines: mintlify/cli/core.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "Core commands"
3
-
description: "Bootstrap and maintain a repo: init, sync, doctor, catalog, docs, and update."
3
+
description: "Bootstrap and maintain a Forge repo with init, sync, doctor, catalog, docs, and update — plus profile, settings, and reversible-uninstall flags."
4
4
---
5
5
6
6
The Core group bootstraps a repo and keeps it healthy.
@@ -43,9 +43,9 @@ config. Only two profiles are supported:
43
43
-**`minimal`** — a leaner ruleset for small repos or contributor forks.
44
44
45
45
The legacy names `web-app`, `backend-service`, `library`, and `regulated` are deprecated
46
-
aliases of `standard`. They still work —`forge init` warns once, stores `standard`, and
47
-
existing configs holding a legacy name still sync as standard — but new repos should use
48
-
`standard`directly. Any other value is invalid and aborts before Forge touches the repo.
46
+
aliases of `standard`. They still work:`forge init` warns once, stores `standard`, and
47
+
existing configs holding a legacy name sync as standard. New repos should use`standard`
48
+
directly. Any other value is invalid and aborts before Forge touches the repo.
Copy file name to clipboardExpand all lines: mintlify/cli/overview.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "CLI overview"
3
-
description: "Every forge command, grouped by Core, Memory, Substrate, Quality, and Config — the command surface is data, reconciled against the docs by a strict drift check."
3
+
description: "Every forge command grouped by Core, Memory, Substrate, Quality, and Config, plus the environment variables that control enforcement and output."
4
4
---
5
5
6
6
The `forge` command surface is defined as data (`src/commands.js`) and reconciled against
0 commit comments