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 globally
# Or use with npx (no installation)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.
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 | View project dashboard | cortex-tms status |
migrate | Upgrade templates | cortex-tms migrate --apply |
prompt | Get AI prompts | cortex-tms prompt init-session |
tutorial | Learn Cortex TMS | cortex-tms tutorial |
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": "2.6.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: