What is LexQ CLI?
LexQ CLI (@lexq/cli) is a command-line tool for managing the full policy lifecycle — from creating policy groups to deploying versions to production. It covers everything the Console does, plus it works as an MCP Server for AI agent integration.
Key Features
Full Policy Lifecycle
Create, test, publish, and deploy policies entirely from the terminal.
AI Agent Ready
Includes agent skills, schemas, and MCP Server mode for AI-powered automation.
Dry Run & Simulation
Validate rules with single-input dry runs or batch simulations against historical data.
JSON & Table Output
Machine-readable JSON (default) or human-readable table format.
Architecture
The CLI exclusively callsmodule-partner-api via API Key authentication.
module-admin-api (Console only), module-engine-api (runtime execution), or module-batch (internal scheduler).
Two Modes
1. CLI Mode
Standard command-line usage:2. MCP Server Mode
Run as a Model Context Protocol server for AI agent integration:For AI Agent Developers
The npm package includes agent-readable documentation:Next Steps
Installation
Install the CLI and authenticate.
Command Reference
Full list of all 61 commands.
MCP Server
Set up MCP for Claude, VS Code, and other AI tools.

