Spec4AI

Command-Line Interface

Install the SAI CLI

Create, validate, and publish executable specs from your terminal. Works on macOS, Linux, and Windows.

Detected: Linux x64 (tarball)Download for Linux (x64)

~1.2 MB · sai-linux-x64.tar.gz

Installation

Quick Install (macOS / Linux)

curl -fsSL https://spec4ai.com/install.sh | bash

Downloads the latest binary for your platform and adds it to your PATH automatically.

All Downloads

Choose your platform and preferred package format.

macOS

macOS (Apple Silicon)
sai-darwin-arm64.tar.gz

Linux

Your OS
Linux x64 (tarball)Detected
sai-linux-x64.tar.gz
Linux x64 (.deb)
sai-linux-x64.deb
Linux x64 (.rpm)
sai-linux-x64.rpm
Linux ARM64 (tarball)
sai-linux-arm64.tar.gz
Linux ARM64 (.deb)
sai-linux-arm64.deb
Linux ARM64 (.rpm)
sai-linux-arm64.rpm

Windows

Getting Started

1Verify Installation

sai --version

Expected output: sai 1.0.0

2Create Your First Spec

sai init my-first-spec --type ai-agent

Scaffolds a new AI Spec with 6 core files: manifest.md, agent.md, qa.md, status.md, security.md, and README.md.

3Validate and Score

sai verify ./my-first-spec
sai score ./my-first-spec

Checks structure, validates content, and calculates a completeness score. 80% minimum to publish.

4Publish to the Marketplace

sai publish

Bundles your spec, validates it, and publishes to the Spec4AI marketplace.

CLI Commands

CommandDescription
sai init <name>Create a new spec scaffold
sai init <name> --engineeringCreate an engineering spec (22-30+ files)
sai verify <path>Validate spec structure and content
sai score <path>Calculate completeness score (0-100%)
sai typesList all 47 supported artifact types
sai install <slug>@stableInstall a spec from the marketplace
sai check <slug>Run validation checks on installed spec
sai publishPublish spec to the marketplace
sai --helpShow all available commands