Skip to main content

Idiomark CLI Reference

Complete reference for all Idiomark CLI commands.

Installation​

npm install -g @idiomark/cli

Commands​

idiomark extract​

Extract personality data from connected platforms.

idiomark extract [options]

Options:

FlagAliasDescriptionDefault
--twitter-tInclude Twitter data-
--github-gInclude GitHub data-
--reddit-rInclude Reddit data-
--output-oOutput file pathentity.idiomark
--sample-size-sNumber of posts to analyze1000
--verbose-vVerbose outputfalse

Examples:

# Extract from Twitter only
idiomark extract --twitter -o me.idiomark

# Extract from multiple sources
idiomark extract -t -g -r -o me.idiomark

# Custom sample size
idiomark extract --github --sample-size 5000 -o me.idiomark

# Verbose output for debugging
idiomark extract -t -v -o me.idiomark

Output:

🎭 Idiomark Extractor

✅ Personality blueprint saved to me.idiomark

📊 Extraction Summary:
────────────────────────────────────
Sources: twitter, github
Posts analyzed: 1000
Timeframe: 90 days
Confidence: 87.5%
────────────────────────────────────

🎭 Personality Preview:
────────────────────────────────────
Primary tone: casual
Formality: 0.30
Humor: 0.80
Enthusiasm: 0.70
────────────────────────────────────

idiomark validate​

Validate a Idiomark file against the protocol schema.

idiomark validate <file> [options]

Arguments:

ArgumentDescription
filePath to .idiomark file to validate

Options:

FlagAliasDescriptionDefault
--strict-sEnable strict validation modefalse

Examples:

# Basic validation
idiomark validate me.idiomark

# Strict validation (checks all fields)
idiomark validate me.idiomark --strict

Output:

✓ Idiomark Validator

✅ Valid Idiomark file

📋 File Details:
────────────────────────────────────
Version: 1.0.0
Entity ID: idiomark_abc123
Created: 2026-02-10T00:00:00Z
Sources: twitter, github
────────────────────────────────────

✅ All checks passed!

Error Output:

❌ Validation failed

Errors found:
────────────────────────────────────
• Missing required field: personality.voice.tone
Field: personality.voice.tone
• Confidence must be between 0 and 1
Field: personality.voice.tone.confidence
────────────────────────────────────

idiomark serve​

Start a local inference server with a personality.

idiomark serve <file> [options]

Arguments:

ArgumentDescription
filePath to .idiomark file to serve

Options:

FlagAliasDescriptionDefault
--port-pPort to listen on3000
--model-mAI model to usegpt-4

Examples:

# Start server on default port
idiomark serve me.idiomark

# Custom port
idiomark serve me.idiomark --port 8080

# Use different model
idiomark serve me.idiomark --model claude-3-opus

Output:

🚀 Idiomark Inference Server

Server starting...

🌐 Server Details:
────────────────────────────────────
URL: http://localhost:3000
Model: gpt-4
Personality: casual
────────────────────────────────────

📝 API Endpoints:
POST /generate Generate response with personality
GET /health Health check
GET /personality View loaded personality

💡 Example:
curl -X POST http://localhost:3000/generate \
-H "Content-Type: application/json" \
-d '{"message": "Hello!"}'

✅ Server ready at http://localhost:3000

idiomark info​

Display detailed information about a Idiomark file.

idiomark info <file>

Arguments:

ArgumentDescription
filePath to .idiomark file to inspect

Examples:

idiomark info me.idiomark

Output:

📋 Idiomark File Info

📄 Metadata:
────────────────────────────────────
Version: 1.0.0
ID: idiomark_demo_example
Created: 2026-02-10T00:00:00Z
Last Updated: 2026-02-10T00:00:00Z
────────────────────────────────────

👤 Entity:
────────────────────────────────────
Name: Demo Developer
Type: human
Sources: github, twitter, reddit
────────────────────────────────────

🎭 Personality:
────────────────────────────────────
Voice:
Tone: casual (87%)
Formality: 25%
Humor: 75%
Sarcasm: 55%
Enthusiasm: 82%
Directness: 65%

Emoji Usage: high
Top Emojis: 🚀 💻 🔥 ✨ 👀
────────────────────────────────────

📚 Domains:
────────────────────────────────────
• javascript (95%)
• typescript (89%)
• react (86%)
────────────────────────────────────

💭 Values:
────────────────────────────────────
✓ open_source (90%)
✓ developer_experience (88%)
✓ type_safety (82%)
✗ over_engineering (71%)
────────────────────────────────────

idiomark projection-adapter​

Create and manage projection adapters that apply Idiomark personalities to external systems.

idiomark projection-adapter <subcommand> [options]

Subcommands:

  • create - Create a new adapter from a template
  • validate - Validate an adapter (TypeScript, imports, schema)
  • test - Test an adapter with coverage
  • list - List all adapters
  • info - Display adapter information
  • add-tools - Add tools to an MCP adapter
  • add-resources - Add resources to an MCP adapter

Examples:

# Create an MCP server adapter
idiomark projection-adapter create my-server --type mcp --personality me.idiomark

# Validate an adapter
idiomark projection-adapter validate ./my-server

# Test with coverage
idiomark projection-adapter test ./my-server --coverage

# List all adapters
idiomark projection-adapter list --type mcp

📖 Full Documentation: See Projectors for complete reference.


Global Options​

FlagDescription
--version, -VShow version number
--help, -hShow help

Exit Codes​

CodeMeaning
0Success
1Error
2Validation failed

Configuration​

Idiomark can be configured via environment variables:

# API key for inference
export IDIOMARK_API_KEY="your-key-here"

# Default model
export Idiomark_MODEL="gpt-4"

# Default port for serve command
export Idiomark_PORT="3000"

Or via config file at ~/.idiomarkrc:

{
"model": "gpt-4",
"port": 3000,
"outputDir": "~/.idiomark"
}