A quick reference card for NAEOS — ideal for experienced users who need a fast lookup.

Essential Commands

# Install
go install github.com/NAEOS-foundation/naeos/cmd/naeos@latest

# Create a new project
naeos init my-project

# Run the full pipeline
naeos run --input-file spec.yaml

# Validate a spec
naeos validate --input-file spec.yaml

# Compile for AI
naeos compile --all --input-file spec.yaml

# Start API server
naeos serve --port 8080

# Start dashboard
naeos dashboard

Spec Minimal Example

project: my-service
modules:
  - name: api
    path: ./api
    dependencies: [database]
  - name: database
    path: ./db
services:
  - name: rest-api
    kind: rest
    port: 8080
architecture:
  pattern: microservices
generation:
  languages: [go, typescript]

Module Options

FieldTypeDescription
namestringModule identifier (required)
pathstringFilesystem path (required)
descriptionstringHuman-readable description
dependencieslistOther module names
kindstringModule type (default: service)

Service Kinds

KindProtocolUse Case
restHTTP/JSONREST APIs
grpcgRPC/ProtobufInternal service communication
graphqlHTTP/GraphQLFlexible query APIs
websocketWebSocketReal-time communication
workerBackground job processing
lambdaServerless functions
reverse-proxyHTTPAPI gateway / load balancer

Architecture Patterns

PatternDescriptionBest For
microservicesIndependent, loosely coupled servicesLarge teams, complex domains
monolithicSingle deployable unitSmall teams, simple domains
serverlessFunction-as-a-serviceEvent-driven, variable load
event-drivenAsync message passingHigh throughput, decoupling

Generation Languages

LanguageAdapterOutput
Gogo.go files with modules, packages
TypeScripttypescript.ts files with interfaces
Pythonpython.py files with classes
Javajava.java files with packages
Rustrust.rs files with crates

CLI Quick Reference

CommandDescription
naeos initCreate a new project
naeos runExecute the full pipeline
naeos validateValidate a specification
naeos compileCompile spec for AI assistants
naeos genGenerate code for a specific language
naeos serveStart the API server
naeos dashboardStart the web dashboard
naeos cloud planGenerate cloud deployment plan
naeos cloud deployDeploy to cloud provider
naeos cloud destroyTear down cloud resources
naeos plugin installInstall a plugin
naeos plugin listList installed plugins
naeos db migrateRun database migrations
naeos db resetReset the database
naeos versionShow version info

API Endpoints

MethodEndpointDescription
GET/api/v1/healthHealth check
GET/api/v1/versionVersion info
POST/api/v1/specs/validateValidate spec
POST/api/v1/specs/compileCompile spec
POST/api/v1/pipeline/runRun pipeline
GET/api/v1/pipeline/statusPipeline status
GET/api/v1/artifactsList artifacts
POST/api/v1/context/generateGenerate context
POST/api/v1/ai/enrich/streamAI enrichment (SSE)
POST/api/v1/ai/compile/streamAI compile (SSE)
GET/api/v1/pluginsList plugins
WS/wsWebSocket real-time events

Environment Variables

VariableDescriptionDefault
NAEOS_LLM_API_KEYAPI key for LLM providers
NAEOS_DB_DRIVERDatabase driver (postgres, mysql, sqlite)sqlite
NAEOS_DB_DSNDatabase connection string
NAEOS_PORTAPI server port8080
NAEOS_LOG_LEVELLog level (debug, info, warn, error)info

Output Directory Structure

output/
├── go/                    # Generated Go code
│   ├── cmd/
│   ├── internal/
│   └── go.mod
├── typescript/            # Generated TypeScript
│   ├── src/
│   ├── package.json
│   └── tsconfig.json
├── ai/                    # AI instruction sets
│   ├── copilot-instructions.md
│   ├── CLAUDE.md
│   ├── .cursorrules
│   └── GEMINI.md
├── context/               # Context bundles
│   └── summary.md
└── terraform/             # Cloud deployment (if configured)
    ├── main.tf
    ├── variables.tf
    └── outputs.tf

See also: CLI Reference, Spec Language, Architecture