LogoBricksmith

CLI 사용법

Bricksmith CLI 명령어 상세 가이드

CLI 사용법#

명령어 목록#

명령어설명
create새 프로젝트 생성
create-from-config저장된 설정으로 프로젝트 생성
apply기존 프로젝트에 feature 브릭 적용
sync템플릿 프로젝트를 브릭으로 동기화
diffFeature 비교 분석
update레거시 프로젝트 업데이트

create#

bricksmith create --type monorepo [options]

옵션#

옵션설명기본값
--type프로젝트 타입monorepo
--name프로젝트명-
--featuresFeature 목록 (쉼표 구분)기본 세트
--backend백엔드 타입serverpod
--primary-entity주요 entity명 (PascalCase)brick 기본값
--secondary-entity보조 entity명 (PascalCase)brick 기본값
--save-config설정 저장false
--no-interactive비대화형 모드false

기본 Feature 세트#

--features 미지정 시 기본 포함:

  • app_router, dashboard, home, mypage, notification, onboarding

예시#

# Feature 목록 지정 + entity 커스터마이징
bricksmith create --type monorepo --no-interactive \
  --name my_app \
  --features home,community,notification,payment \
  --backend serverpod \
  --primary-entity Article

apply#

bricksmith apply --feature <name> [options]

옵션#

옵션설명기본값
--feature단일 feature-
--features복수 feature (쉼표 구분)-
--backendbackend 포함true
--primary-entity주요 entity명 (PascalCase)brick 기본값
--secondary-entity보조 entity명 (PascalCase)brick 기본값
--bricks-dir커스텀 bricks 경로bricks/
--dry-run미리보기false
--force덮어쓰기false

예시#

# 단일 feature 적용
bricksmith apply --feature community

# 복수 feature 동시 적용
bricksmith apply --features community,chat,notification

# entity 커스터마이징
bricksmith apply --feature community \
  --primary-entity Article \
  --secondary-entity Reply

# console feature 적용
bricksmith apply --feature console_dashboard --backend

# 커스텀 bricks 경로
bricksmith apply --feature community --bricks-dir /path/to/bricks

sync#

bricksmith sync --type <type> --project-dir template/my_project [options]

옵션#

옵션설명기본값
--type동기화 타입 (monorepo, app, all-console-features)-
--project-dir템플릿 프로젝트 경로-
--bricks-dir커스텀 bricks 출력 경로bricks/

동기화 타입#

타입설명
monorepo모노레포 전체 동기화
app앱 브릭만 동기화
all-console-features29개 console feature 브릭 일괄 동기화

예시#

# 모노레포 동기화
bricksmith sync --type monorepo --project-dir template/my_project

# console feature 전체 동기화
bricksmith sync --type all-console-features --project-dir template/kobic

# 커스텀 bricks 경로로 동기화
bricksmith sync --type monorepo --project-dir template/my_project \
  --bricks-dir /path/to/output/bricks

diff#

bricksmith diff --project-a template/project_a --feature auth --full-analysis