CLI 사용법#
명령어 목록#
| 명령어 | 설명 |
create | 새 프로젝트 생성 |
create-from-config | 저장된 설정으로 프로젝트 생성 |
apply | 기존 프로젝트에 feature 브릭 적용 |
sync | 템플릿 프로젝트를 브릭으로 동기화 |
diff | Feature 비교 분석 |
update | 레거시 프로젝트 업데이트 |
create#
bricksmith create --type monorepo [options]
| 옵션 | 설명 | 기본값 |
--type | 프로젝트 타입 | monorepo |
--name | 프로젝트명 | - |
--features | Feature 목록 (쉼표 구분) | 기본 세트 |
--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 (쉼표 구분) | - |
--backend | backend 포함 | 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-features | 29개 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