@harness-engineering/cli
v1.6.2
Published
CLI for Harness Engineering toolkit
Readme
@harness-engineering/cli
CLI for Harness Engineering toolkit.
Installation
npm install -g @harness-engineering/cliCommands
harness init
Initialize a new harness-engineering project.
harness init
harness init --name my-projectharness validate
Run all validation checks.
harness validate
harness validate --json
harness validate --verboseharness check-deps
Validate dependency layers and detect circular dependencies.
harness check-depsharness check-docs
Check documentation coverage.
harness check-docs
harness check-docs --min-coverage 90harness cleanup
Detect entropy issues.
harness cleanup
harness cleanup --type drift
harness cleanup --type dead-codeharness fix-drift
Auto-fix entropy issues.
harness fix-drift # Dry run
harness fix-drift --no-dry-run # Apply fixesharness add
Add components to the project.
harness add layer services
harness add module user
harness add doc architectureharness agent
Agent orchestration commands.
harness agent run review
harness agent reviewGlobal Options
--config <path>- Path to config file--json- Output as JSON--verbose- Verbose output--quiet- Minimal output
Configuration
Create harness.config.json in your project root:
{
"version": 1,
"name": "my-project",
"layers": [
{ "name": "types", "pattern": "src/types/**", "allowedDependencies": [] },
{ "name": "domain", "pattern": "src/domain/**", "allowedDependencies": ["types"] }
],
"agentsMapPath": "./AGENTS.md",
"docsDir": "./docs"
}Exit Codes
0- Success1- Validation failed2- Error
