Prerequisites
- Bun v1.3 or later
- Git (strongly recommended)
- The BRICKS CLI (2.25.0 or later)
- A BRICKS workspace account
Create a project
There are three ways to get a BRICKS project.Option 1: BRICKS Controller (recommended)
Generate a project from the BRICKS Controller web interface:- Open your application in BRICKS Controller
- Click Generate Project
- Configure options:
- AGENTS.md — AI agent instructions (for Claude Code, Codex, etc.)
- CLAUDE.md — Claude Code-specific instructions
- GEMINI.md — Gemini CLI instructions
- GitHub Actions — CI/CD deployment workflows
- Click Download Project (.zip)
Option 2: CLI
Install the BRICKS CLI, then initialize a project from the command line:bricks ctor init command generates the project files and installs dependencies. You can customize the output with flags:
Option 3: CTOR
Use CTOR — a desktop IDE with an integrated AI agent that can create, edit, and deploy projects through chat.Development workflow
Compile
Type-check and compile your TypeScript into the JSON configuration the BRICKS runtime uses:bricks ctor compile under the hood.
Simulator
Launch your app in the local Simulator window:bricks ctor simulator. For the equivalent inside CTOR’s integrated IDE, see the embedded preview.
Deploy
Deploy your compiled app to the BRICKS server:bricks ctor deploy --auto-commit.
Version resolution priority:
--version flag > --auto-version bump > package.json version. Both --version and --auto-version update package.json before deploying.
Push without a release
Compile the current configuration and push it to the active stage without creating a release:bricks ctor push --auto-commit.
Pull
Pull the latest version of your application from the server:bricks ctor pull, performing a three-way Git merge between your local project and the server version. Use --force to overwrite local changes.
Migrate an existing project
Projects created with the older@fugood/bricks-ctor npm package migrate automatically the next time bun install runs, provided the BRICKS CLI 2.25.0 or later is installed globally. During migration:
- Project scripts are rewritten to call
bricks ctorcommands - The
@fugood/bricks-ctordependency is removed - The local
ctor/library, MCP configuration, and skills are regenerated
AI-assisted development
bricks-ctor is designed to work with AI coding agents. When you generate a project with AI instructions enabled, the following files are created:
These files contain project-specific instructions, architecture patterns, and BRICKS domain knowledge that help AI agents understand and modify your application.
The BRICKS CLI also delivers a built-in MCP server and built-in skills that provide tools and domain knowledge for AI agents working with your project.