CLI 사용법#
명령어 목록#
| 명령어 | 설명 |
create | 새 프로젝트 생성 |
create-from-config | 저장된 설정으로 프로젝트 생성 |
apply | 기존 프로젝트에 feature 브릭 적용 |
sync | 템플릿 프로젝트를 브릭으로 동기화 |
diff | Feature 비교 분석 |
update | 레거시 프로젝트 업데이트 |
create#
bricksmith create --type monorepo [options]
| 옵션 | 설명 | 기본값 |
--type | 프로젝트 타입 | monorepo |
--name | 프로젝트명 | - |
--features | Feature 목록 | 기본 세트 |
--backend | 백엔드 타입 | serverpod |
--save-config | 설정 저장 | false |
--no-interactive | 비대화형 모드 | false |
기본 Feature 세트#
--features 미지정 시 기본 포함:
- app_router, dashboard, home, mypage, notification, onboarding
apply#
bricksmith apply --feature <name> [options]
| 옵션 | 설명 | 기본값 |
--feature | 단일 feature | - |
--features | 복수 feature | - |
--backend | backend 포함 | true |
--primary-entity | 주요 entity명 | brick 기본값 |
--secondary-entity | 보조 entity명 | brick 기본값 |
--dry-run | 미리보기 | false |
--force | 덮어쓰기 | false |
sync#
bricksmith sync --type monorepo --project-dir template/my_project
diff#
bricksmith diff --project-a template/project_a --feature auth --full-analysis