Skip to main content
Learn

Install CALM CLI and Initialize Your Architecture Repository

โฑ 1 min read๐ŸŸข Beginner ยท 15-20 minutesEdit on GitHub โ†—

Overviewโ€‹

Set up your CALM workspace with AI-powered assistance and establish the foundation for your architecture learning journey.

Learning objectivesโ€‹

By the end of this tutorial, you will:

  • Install the CALM CLI tool
  • Create a git repository for your architecture work
  • Enable GitHub Copilot assistance for architecture development
  • Understand the basic project structure for CALM architectures

Prerequisitesโ€‹

Ensure you have the following installed:

  • Git
  • Node.js (20+) and npm
  • VSCode editor (version 1.96+)
  • GitHub Copilot access (optional but recommended, requires VSCode 1.106+)

Step-by-Step Guideโ€‹

1. Create Your Repositoryโ€‹

mkdir calm-learning
cd calm-learning
git init

2. Install the CALM CLIโ€‹

Install via npm:

npm install -g @finos/calm-cli

Or if you use Homebrew:

brew install calm-cli

Verify installation:

calm --version

3. Initialize Your Project Structureโ€‹

Create a basic structure for your architecture files:

mkdir architectures
mkdir patterns
mkdir docs
touch README.md

4. Enable AI Assistance with Copilot Agentโ€‹

calm init-ai -p copilot -d .

This creates .github/agents/CALM.agent.md with specialized CALM knowledge for GitHub Copilot. We'll use this agent in VSCode in the next tutorial.

5. Add a .gitignoreโ€‹

Create .gitignore:

node_modules/
.DS_Store
*.log
.vscode/settings.json
**/.docusaurus/

Key conceptsโ€‹

What is the CALM CLI?โ€‹

The CALM CLI is a command-line tool that provides:

  • Validation - Check if your architecture files are valid
  • Generation - Create architecture scaffolds from patterns
  • Documentation - Generate docs from your architecture files

What is the CALM Agent?โ€‹

The agent file provides GitHub Copilot with specialized knowledge about:

  • CALM schema and syntax
  • Best practices for architecture modeling
  • Common patterns and examples

Tipsโ€‹

  • If you don't have GitHub Copilot access, the agent file is still useful as documentation for you to reference

Next stepsโ€‹

In the next tutorial, you'll create your first CALM architecture file using AI assistance!