B
Blocks
Getting Started

Getting Started

Get Blocks running in your project in under 5 minutes.

Quick Path

Prerequisites

  • Node.js 20+ - Required runtime
  • pnpm, npm, or yarn - Package manager
  • AI API key - OpenAI, Anthropic, or Google (for domain validation)

The 3-Step Setup

# 1. Install globally
npm install -g @blocksai/cli

# 2. Create blocks.yml in your project
blocks init

# 3. Run validation
blocks run --all

What Happens Next

After running blocks run --all:

  1. Schema validation - Checks your blocks.yml syntax
  2. Shape validation - Verifies file structure
  3. Domain validation - AI analyzes semantic compliance

Results show pass/fail for each block with actionable feedback.

Next Steps