Skip to content

build

Overview

Command: r2r eac build [module...] [--all] Purpose: Build one or more modules by moniker Category: other

Language Support

The build command supports multiple languages via capability-based handlers:

  • Go (type: go) - Compiles Go binaries with cross-platform support
  • TypeScript (type: typescript) - Runs npm install and tsc compilation
  • Docker (type: container) - Builds container images with buildx
  • MkDocs (type: docs) - Generates documentation sites
  • Scripts (type: static with scripts) - Custom build commands

The command automatically selects the appropriate build handler based on the module's declared capabilities. See Module Types Reference for configuration details.

Syntax

r2r eac build [module...] [--all] [options]

Options

Flag Description
--all Build all modules
--clean Clean before building
--parallel Build in parallel
--verbose Verbose output

Examples

# Build single module
r2r eac build src-auth

# Build multiple modules
r2r eac build src-auth src-api

# Build all modules
r2r eac build --all

# Clean build
r2r eac build src-auth --clean

# Build changed modules
CHANGED=$(r2r eac get changed-modules | jq -r '.changed_modules[]')
r2r eac build $CHANGED

Build Order

Builds respect dependency order automatically:

# Builds dependencies first
r2r eac build r2r-cli

# Execution order: eac-core → eac-commands → r2r-cli

See Also


Tutorials | How-to Guides | Explanation | Reference

You are here: Reference — information-oriented technical descriptions of the system.