Skip to main content
The oclang package ships two binaries:
  • ocat — the Orange Cat compiler and runner
  • ocm — the Orange Cat project manager
Both are installed together from a single npm package.

Prerequisites

Before installing, make sure you have:
  • Node.js — any recent LTS release
  • TypeScript 5+ — required as a peer dependency
1

Install TypeScript

If you don’t have TypeScript 5+ installed globally, add it first:
npm install -g typescript
Confirm the version:
tsc --version
# Version 5.x.x
2

Install oclang

Install the oclang package globally:
npm install -g oclang
3

Verify the installation

Confirm both binaries are available:
ocat --version
# 1.0.0

ocm --version
# 1.0.0
If either command is not found, make sure your package manager’s global bin directory is on your PATH.

What gets installed

BinaryDescription
ocatCompiles and runs .ocat source files; also provides an interactive REPL via ocat inline
ocmScaffolds and manages OCat projects via ocm initialize and ocm run

Quickstart

Write and run your first OCat program in under 5 minutes

CLI reference

Full reference for every ocat and ocm command and flag

Build docs developers (and LLMs) love