init
Initialize Cortex TMS in your project
Sets up the complete TMS documentation structure with interactive prompts.
The Cortex TMS CLI is the primary tool for managing your TMS projects. Use it to initialize projects, validate documentation health, check project status, and more.
# Install globallynpm install -g cortex-tms@latest
# Or use with npx (no installation)npx cortex-tms@latest <command>cortex-tms [command] [options]cortex-tms --help # Show help for all commandscortex-tms --version # Show current versioninit
Initialize Cortex TMS in your project
Sets up the complete TMS documentation structure with interactive prompts.
validate
Validate project health and compliance
Runs comprehensive health checks to ensure documentation follows TMS standards.
status
Show project health dashboard
Displays a high-level overview of scope, sprint progress, health summary, and backlog.
migrate
Upgrade TMS files to current version
Safely updates template files while preserving customizations.
prompt
Access AI prompt templates
Provides quick access to project-aware AI prompts with clipboard integration.
tutorial
Interactive walkthrough
Teaches the “Cortex Way” through an interactive onboarding tutorial.
auto-tier
Automatic tier assignment
Uses git history to assign HOT/WARM/COLD tiers based on file recency.
review
Guardian: Pattern validation
AI-powered code review against project patterns and domain logic.
dashboard
Interactive terminal dashboard
Real-time governance health UI with tab navigation — file tiers, staleness, sprint progress, and validation in one view.
hooks
Manage git hooks
Install pre-commit hooks for automatic documentation validation before every commit.
All commands support these global options:
| Option | Description |
|---|---|
-h, --help | Show help for the command |
-V, --version | Show CLI version |
| Command | Purpose | Common Usage |
|---|---|---|
init | Initialize TMS in project | cortex-tms init |
validate | Check project health | cortex-tms validate --strict |
status | Text health summary | cortex-tms status |
dashboard | Interactive terminal UI | cortex-tms dashboard --live |
auto-tier | Auto-assign tiers via git history | cortex-tms auto-tier --dry-run |
migrate | Upgrade templates | cortex-tms migrate --apply |
prompt | Get AI prompts | cortex-tms prompt init-session |
review | Validate code against patterns | cortex-tms review src/file.ts |
tutorial | Learn Cortex TMS | cortex-tms tutorial |
hooks | Git hook management (v4.1+) | cortex-tms hooks install |
All commands follow standard Unix exit code conventions:
| Code | Meaning |
|---|---|
0 | Success - command completed without errors |
1 | Failure - command encountered errors |
# 1. Initialize projectcortex-tms init
# 2. Verify setupcortex-tms validate
# 3. Check statuscortex-tms status# 1. Get AI session promptcortex-tms prompt init-session
# 2. Work on tasks in NEXT-TASKS.md
# 3. Validate before committingcortex-tms validate --strict# 1. Check for updatescortex-tms migrate
# 2. Apply upgradescortex-tms migrate --apply
# 3. Verify changescortex-tms validateCortex TMS CLI respects these environment variables:
| Variable | Description | Default |
|---|---|---|
NO_COLOR | Disable colored output | Not set |
CI | Indicates CI/CD environment | Not set |
The CLI uses .cortexrc in your project root for configuration:
{ "version": "1.0.0", "scope": "standard", "projectName": "my-project", "metadata": { "createdAt": "2026-01-19T10:00:00.000Z", "customFiles": [] }}This file is automatically created by cortex-tms init and updated by other commands.
Explore individual command documentation: