Start here

A fast onboarding path from install to your first generated contract.

Install the CLI

bun add contractspec -D

Add core libraries

bun add @contractspec/lib.contracts @contractspec/lib.schema

Initialize your project

start-here-init
bunx contractspec init

Create your first contract

start-here-create
contractspec create --type operation

Generate implementation

start-here-build
contractspec build src/contracts/mySpec.ts
contractspec validate src/contracts/mySpec.ts