دليل أداة سطر الأوامر madarctl والتشغيل
استخدام أداة madarctl لفحص سلامة النظام، والتحقق من سلسلة التدقيق، وتدوير مفاتيح Ed25519، واستعادة حسابات الإدارة.
أوامر الإدارة والصيانة عبر سطر الأوامر
توفر أداة madarctl الموجودة في المسار (madar_server/bin/madarctl.js) أوامر تشغيلية مباشرة لمسؤولي النظام:
الأوامر الشائعة لأداة madarctl
# Verify database connectivity, workspace setup, and SHA-256 audit log integrity:
node bin/madarctl.js doctor
# Rotate the workspace Ed25519 policy signing keypair:
node bin/madarctl.js rotate-keys
# Reset an administrator's password and clear lockout state:
node bin/madarctl.js reset-admin --employee-no ADM-001 --password 'NewStrong#2026!Pass'