Xpert SafeXpert Safe
Technical Documentation Portal · v1.0

Madar Suite Documentation

Architectural and operational guides for Madar Personal, Self-Hosted Workspace Server, Policy Engine, and REST/WebSocket APIs.

Technical Documentation Portal/API, Realtime & CLI Reference·4 min read·Updated: 2026-11-06

madarctl CLI Reference & Operations

Using madarctl for health diagnostics, audit chain verification, Ed25519 key rotation, and admin recovery.

Administrative CLI Commands

The madarctl binary (madar_server/bin/madarctl.js) provides direct operational commands for system administrators:

Common madarctl Commands
# 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'