Skip to content

CLI Reference

The PRISM CLI provides commands for creating, validating, and scoring PRISM documents.

Installation

go install github.com/grokify/prism/cmd/prism@latest

Commands

Core Commands

Command Description
prism init Initialize a new PRISM document
prism validate Validate a PRISM document
prism score Calculate the PRISM score
prism catalog List available constants

Roadmap Commands (v0.2.0)

Command Description
prism goal Manage and inspect goals
prism phase Manage and inspect phases
prism roadmap View roadmap overview
prism initiative List and inspect initiatives

SLO Reporting (v0.2.0)

Command Description
prism slo-report Generate SLO compliance reports
prism dashforge Convert to dashforge format

Maturity Commands (v0.6.0)

Model Commands

Command Description
prism maturity model report Generate maturity model reports (Markdown)
prism maturity model xlsx Generate maturity model reports (Excel)
prism maturity model dashboard Generate model dashboards with state integration
prism maturity model validate Validate model documents
prism maturity model lint Check for dashboard display issues and threshold gaps

State Commands

Command Description
prism maturity state validate Validate state documents (with optional model cross-validation)
prism maturity state show Display state summary (text/json)

Plan Commands

Command Description
prism maturity plan dashboard Generate executive dashboards
prism maturity plan report Generate roadmap reports (Markdown/JSON)

Organizational Commands (v0.3.0)

Command Description
prism layer List and inspect value stream layers
prism team List and inspect teams
prism service List and inspect services

Analysis & Export Commands (v0.3.0)

Command Description
prism analyze Analyze document and generate recommendations
prism export Export to OKR/V2MOM formats

Global Flags

Flag Description
--help, -h Show help for any command
--version Show version information

Usage

# Get help
prism --help
prism <command> --help

# Initialize a document
prism init -o prism.json

# Validate a document
prism validate prism.json

# Calculate score
prism score prism.json

# List constants
prism catalog

Exit Codes

Code Meaning
0 Success
1 Validation errors or general failure
2 File not found or I/O error