CLI Tooling, Scaffolding & Automation Manual
The authoritative command-line executable (tasleemat) for terminal automation, interactive workspace scaffolding, catalog querying, LLM synthesis, and air-gapped CI/CD execution.
1. CLI Architecture & Environment Variables
The tasleemat command-line executable is compiled with zero external C-dependencies. It runs natively across Linux, macOS, and Windows.
It operates in two distinct execution modes: an interactive terminal wizard for practitioners and human managers,
and a deterministic headless flag mode optimized for shell scripts, cron jobs, and CI/CD pipelines.
Global Environment Variables
| Variable | Default Value | Description |
|---|---|---|
TASLEEMAT_HOME |
~/.tasleemat |
Root directory for localized caches, project registry, and telemetry. |
TASLEEMAT_CONFIG_FILE |
~/.tasleemat/config.json |
Location of secure API keys and local LLM endpoints (file permissions 0600). |
TASLEEMAT_DEFAULT_LANG |
en |
Fallback language for outputs and templates if --lang flag is omitted (en or ar). |
TASLEEMAT_NO_COLOR |
0 |
Set to 1 to disable ANSI terminal colors for raw logging pipelines. |
Standard Exit Codes Matrix
The CLI produces strict POSIX exit codes to guarantee deterministic pipeline control:
0: SUCCESS - Command completed successfully with all outputs written.1: VALIDATION / RUNTIME ERROR - Schema validation failure, missing template, or LLM connection failure.2: INVALID ARGUMENTS - Unrecognized flag, unsupported tier number, or illegal language code.127: DELIVERABLE NOT FOUND - Specified artifact ID (e.g.PMO-99.99) does not exist in the 114 catalog.
2. Exhaustive Command Reference & Flags
A. tasleemat init (Workspace Scaffolding)
Scaffolds an isolated project repository pre-tailored to your governance tier (1, 2, or 3) and delivery archetype pack. For every required deliverable, the CLI generates the complete 5-asset bundle: Template (Markdown), Practitioner Guide (Markdown), Realistic Example (Markdown), Companion Schema (JSON Draft 2020-12), and Data Dictionary (CSV).
# Interactive wizard mode (prompts for project metadata)
tasleemat init
# Full headless automation flags (e.g. Tier 2 Agile Project in Arabic)
tasleemat init \
--tier 2 \
--pack agile \
--lang ar \
--code "PRJ-2026-CLOUD" \
--name "ู
ูุตุฉ ุงูุชุญูู ุงูุฑูู
ู ุงูุณุญุงุจู" \
--pm "ุณุงุฑุฉ ุงูุฃุญู
ุฏ" \
--sponsor "ุฏ. ุฎุงูุฏ ุงูู
ูุตูุฑ" \
--out ./projects/PRJ-2026-CLOUD \
--force
# Enterprise Tier 1 Hybrid Project with Bilingual (both) Deliverables
tasleemat init \
--tier 1 \
--pack hybrid \
--lang both \
--code "PRJ-CORE-MIGRATE" \
--name "Core Banking Replacement Program" \
--pm "Fahad Al-Harbi" \
--sponsor "Chief Operating Officer" \
--out ./enterprise_workspace
--tier <1|2|3>: Governance tier (1 = Strategic/Mega, 2 = Standard Enterprise, 3 = Lean/Fast-track). Default: 2.--pack <general|agile|ai|predictive|hybrid>: Delivery methodology pack. Default: general.--lang <en|ar|both>: Language generation mode. Default: en.--code <string>: Unique project identifier code.--name <string>: Official project title.--pm <string>: Name of assigned Project Manager.--sponsor <string>: Name and title of Project Sponsor.--out <path>: Target filesystem directory path.--force: Overwrites existing destination directory without prompt.
B. tasleemat list & search (Catalog Exploration)
Inspect the 114 canonical deliverables directly from your terminal. Supports phase filtering, tier filtering, and JSON output formatting for piping into jq.
# List all 114 deliverables in English or Arabic
tasleemat list --lang en
tasleemat list --lang ar
# Filter by project lifecycle phase code (00 to 07)
tasleemat list --phase 04 --lang en
# Filter by tier and pack
tasleemat list --tier 3 --pack agile
# Output catalog as machine-readable JSON array
tasleemat list --json | jq '.[0]'
# Full-text fuzzy search across deliverable titles, keywords, and IDs
tasleemat search "Charter"
tasleemat search "ู
ูุซุงู" --lang ar
tasleemat search "PMO-04.08.02"
C. tasleemat config (AI Model Credentials Management)
Securely configure LLM provider API credentials and default models for automated document synthesis.
All tokens are stored locally in ~/.tasleemat/config.json with POSIX permissions 0600.
# Configure Google Gemini
tasleemat config set --provider gemini --model gemini-2.5-flash --key "AIzaSy..."
# Configure OpenAI
tasleemat config set --provider openai --model gpt-4o --key "sk-proj-..."
# Configure Anthropic Claude
tasleemat config set --provider anthropic --model claude-3-5-sonnet-20241022 --key "sk-ant-..."
# Configure Local Ollama Endpoint (Air-Gapped / High-Security Setup)
tasleemat config set --provider ollama --model llama3.2 --endpoint "http://localhost:11434"
# Display configured providers (keys are automatically masked with asterisks)
tasleemat config show
# Reset credentials for a specific provider
tasleemat config reset --provider openai
D. tasleemat generate (Automated Document Synthesis)
Synthesize compliant markdown deliverables from raw meeting notes or text requirements using your configured LLM provider.
Also features an offline --mock mode for test environments.
# Generate Project Charter (PMO-03.01) from kick-off notes file
tasleemat generate \
--form PMO-03.01 \
--notes ./kickoff_notes.txt \
--lang en \
--out ./Project_Charter.md
# Pipe notes directly from stdin (ideal for shell automation)
cat << 'EOF' | tasleemat generate --form PMO-04.08.02 --lang ar --out ./Risk_Register.md -
ุงูู
ุดุฑูุน ููุงุฌู ุงุญุชู
ุงููุฉ ุชุฃุฎุฑ ูุตูู ุงูุฎูุงุฏู
ุจูุณุจุฉ 40%ุ ู
ู
ุง ูุฏ ูุนุทู ุงูุฅุทูุงู ุฃุณุจูุนูู.
ุงูู
ุณุคูู ุนู ุงูู
ุชุงุจุนุฉ ูู ู
ููุฏุณ ุงูุจููุฉ ุงูุชุญุชูุฉ.
EOF
# Offline mock mode for CI/CD test runs (zero tokens consumed, runs in 50ms)
tasleemat generate \
--form PMO-03.01 \
--notes "Mock input data" \
--mock \
--out ./mock_charter.md
E. tasleemat test & tasleemat mcp
Execute internal verification suites or launch the stdio Model Context Protocol (MCP) server for IDE integration:
# Run complete automated test suite (140+ unit and integration checks)
tasleemat test -v
# Run tests with fail-fast mode
tasleemat test -v --failfast
# Start the Model Context Protocol stdio server for Claude Desktop / Cursor
tasleemat mcp
F. tasleemat tui (Interactive Bilingual Terminal Workstation)
Launch the full-featured, mouse-aware, keyboard-driven Terminal User Interface built on Textual. Features true bilingual Arabic BiDi cursor & shaping, live Markdown and JSON schema preview, interactive project scaffolding, Stage-Gate exit checklists, AI synthesis playground, and 1-click workspace setup for 8 AI agent tools.
# Install with TUI dependencies (Textual, arabic-reshaper, python-bidi)
pip install "tasleemat[tui]"
# Launch the interactive terminal workstation
tasleemat tui
# Launch directly in Arabic mode
tasleemat tui --lang ar
# Command alias
tasleemat ui
- 1. Scaffolding Wizard: 5-step guided project initialization with live Tier/Archetype selection and automatic AI agent injection.
- 2. Deliverables Explorer: Instant split-pane browser for all 114 deliverables with Phase and Tier filters, live Markdown viewer, and companion JSON Schema syntax inspector.
- 3. Stage-Gates Navigator: Interactive gate approval navigator (Gates 0 through 5) with required entry artifacts and interactive exit criteria checklists.
- 4. Bilingual Lexicon: Real-time fuzzy search across 114 standard Arabic & English PMO governance terms with quick navigation.
- 5. AI Studio: Interactive deliverable synthesis studioโenter prompt/notes, select target deliverable, and stream live AI drafting directly in your terminal.
- 6. LLM Config Manager: Unrestricted model selection supporting OpenAI, Anthropic, Gemini, Groq, OpenRouter, and custom local/remote OpenAI-compatible endpoints (vLLM, Ollama, Together).
- 7. Agent Hub: 1-click workspace generator injecting project rules, deliverable catalogs, and MCP configurations into 8 AI agent environments: Cursor, Antigravity, Claude Desktop, VS Code, OpenCode, Cline, Windsurf, and OpenAI CLI Replicas.
- 8. Auditor & KPIs: Live project workspace verification dashboard with real-time completion progress bars, governance score percentages, Stage-Gate readiness matrix, and schema compliance inspector.
F1 Help • F2 Toggle English/ุงูุนุฑุจูุฉ • F10 / Ctrl+Q Quit • Tab Navigate controls.
G. tasleemat audit (Project Governance & Structural Verification)
Deterministic compliance auditing for any scaffolded PMO workspace. Analyzes deliverable presence against governance tiers (1, 2, or 3) and delivery packs, computes completion percentages, validates JSON payloads against companion schemas (Draft 2020-12), and produces structured JSON for CI/CD gates.
# Audit the current project directory with auto-detected Tier & Pack
tasleemat audit
# Audit a specific directory with explicit rules and strict CI/CD exit code
tasleemat audit ./projects/PRJ-2026-CLOUD --tier 2 --pack agile --strict
# Generate machine-readable JSON report for automated pipelines
tasleemat audit ./my_workspace --json --out audit_report.json
3. Practical Step-by-Step Tutorials
Tutorial 1: Zero-to-Production Enterprise Workspace Scaffolding
Follow this end-to-end walkthrough to create an audited project directory for a strategic healthcare transformation initiative:
- Discover Required Deliverables: Run
tasleemat list --tier 1 --pack hybridto inspect the required 42 deliverables. - Scaffold the Workspace: Execute the headless initialization command:
tasleemat init \ --tier 1 \ --pack hybrid \ --lang en \ --code "PRJ-2026-MED" \ --name "National Health EHR Integration" \ --pm "Dr. Mariam Al-Ghamdi" \ --sponsor "Ministerial Steering Committee" \ --out ./PRJ-2026-MED - Inspect Directory Structure: Navigate into
./PRJ-2026-MED. You will find:PRJ-2026-MED/ โโโ manifest.json # Machine-readable workspace catalog & SHA-256 hashes โโโ 01_Initiation/ โ โโโ PMO-03.01_Project_Charter/ โ โ โโโ template.md # Pure Markdown template with placeholder brackets โ โ โโโ guide.md # Practitioner authoring instructions & RACI tips โ โ โโโ example.md # Fully filled realistic enterprise example โ โ โโโ schema.json # Companion JSON Schema Draft 2020-12 โ โ โโโ dictionary.csv # Standardized field dictionary & data types โ โโโ PMO-03.02_Stakeholder_Register/ โโโ ... - Synthesize Charter from Raw Notes: Feed your kickoff meeting notes directly into the synthesizer:
tasleemat generate \ --form PMO-03.01 \ --notes ./meeting_minutes.txt \ --out ./PRJ-2026-MED/01_Initiation/PMO-03.01_Project_Charter/template.md
Tutorial 2: Air-Gapped High-Security Enterprise Setup
For defense, banking, and government environments with zero outbound internet connectivity:
- Transfer Wheel Package: Copy the pre-built
tasleemat-2.5.0.post1-py3-none-any.whlto your air-gapped bastion host via verified removable media. - Offline Installation:
pip install --no-index --find-links . tasleemat-2.5.0.post1-py3-none-any.whl - Configure Local Ollama Instance: Point Tasleemat to an on-premises air-gapped LLM instance:
tasleemat config set --provider ollama --model llama3.2 --endpoint "http://10.0.50.12:11434" - Verify Zero Telemetry: Run
tasleemat test -v. All 146 internal tests execute in memory without emitting any outbound HTTP requests.
Tutorial 3: Multi-Project Enterprise Portfolio Batch Provisioning
Use this bash automation recipe to batch-scaffold multiple project workspaces from a centralized portfolio CSV registry:
#!/usr/bin/env bash
# provision_portfolio.sh - Batch PMO Workspace Initializer
set -euo pipefail
CSV_FILE="portfolio_registry.csv"
OUTPUT_ROOT="./enterprise_pmo_workspaces"
mkdir -p "$OUTPUT_ROOT"
echo "Reading projects from $CSV_FILE..."
# CSV Format: code,name,tier,pack,lang,pm,sponsor
tail -n +2 "$CSV_FILE" | while IFS=',' read -r code name tier pack lang pm sponsor; do
echo "=========================================================="
echo "Scaffolding: [$code] $name (Tier $tier, Pack $pack)..."
tasleemat init \
--code "$code" \
--name "$name" \
--tier "$tier" \
--pack "$pack" \
--lang "$lang" \
--pm "$pm" \
--sponsor "$sponsor" \
--out "$OUTPUT_ROOT/$code" \
--force
echo "Successfully created: $OUTPUT_ROOT/$code"
done
echo "Portfolio provisioning complete! All workspaces verified."
4. Enterprise DevOps & Shell Recipes
A. Git Pre-Commit Hook
Place this script in .git/hooks/pre-commit to prevent committing corrupted workspaces or invalid deliverable schemas:
#!/usr/bin/env bash
# .git/hooks/pre-commit
echo "[Tasleemat Hook] Verifying project integrity..."
# 1. Run internal unit tests
if ! tasleemat test > /dev/null 2>&1; then
echo "ERROR: Tasleemat regression tests failed! Aborting commit."
exit 1
fi
echo "[Tasleemat Hook] Pre-commit checks passed successfully."
exit 0
B. Parsing Catalog via jq
# Extract deliverable codes and English names for Phase 03
tasleemat list --phase 03 --json | jq -r '.[] | "\(.id): \(.name_en)"'
# Count deliverables allocated to Tier 3
tasleemat list --tier 3 --json | jq 'length'