@domainlang/cli
v0.1.82
Published
Command-line interface for DomainLang - validate, analyze, and manage Domain-Driven Design models
Maintainers
Readme
@domainlang/cli
Command-line interface for DomainLang - a Domain-Driven Design modeling language.
Features
- 📦 Dependency Management - Git-native model dependencies with version locking
- 🔍 Validation - Validate your DomainLang models for correctness
- 🌳 Impact Analysis - Visualize dependency trees and analyze changes
- 🔒 Compliance - Audit and check model compliance
Installation
npm install -g @domainlang/cliOr use with npx:
npx @domainlang/cli --helpQuick Start
# Validate a DomainLang model
domain-lang-cli model validate
# Install model dependencies
domain-lang-cli install
# View dependency tree
domain-lang-cli model treeCommands
Dependency Management
DomainLang supports a git-native model dependency workflow via model.yaml and a lock file.
# List dependencies (from lock file)
domain-lang-cli model list
# Add/remove dependencies in model.yaml
domain-lang-cli model add <name> <owner/repo> [version]
domain-lang-cli model remove <name>
# Install and lock dependencies
domain-lang-cli installAnalysis & Validation
# Validate model structure and references
domain-lang-cli model validate
# See dependency tree and impact analysis
domain-lang-cli model tree [--commits]
domain-lang-cli model deps <owner/repo>
# Audit and compliance checks
domain-lang-cli model audit
domain-lang-cli model complianceUtilities
# Clear dependency cache
domain-lang-cli cache-clear
# Get help
domain-lang-cli --helpCode Generation (Experimental)
# Generate code from a model (currently produces stub output)
domain-lang-cli generate <file>Related Packages
- @domainlang/language - Core language library and SDK
- DomainLang VS Code Extension - IDE support with syntax highlighting and validation
Documentation
License
Apache-2.0
