cob create-from-config#
projects/ 디렉토리에 저장된 JSON 설정 파일로 프로젝트를 생성합니다. cob create --save-config로 저장한 설정을 재사용하거나, JSON 파일을 직접 작성해 사용할 수 있습니다.
cob create-from-config --config <name> [options]
현재
type: monorepo설정만 지원합니다.
옵션#
| 옵션 | 축약 | 설명 | 기본값 |
|---|---|---|---|
--config |
-c |
사용할 설정 이름 (projects/<name>.json) |
- |
--list | -l | 저장된 설정 목록 출력 | false |
--output-dir |
-o |
출력 디렉토리 (저장된 값 덮어쓰기) | 설정 파일 값, 없으면 . |
--auto-start |
생성 후 make start 실행 (명시 시 저장된 값 덮어쓰기, --no-auto-start 가능) |
설정 파일 값 |
동작 순서#
projects/<name>.json로드 후 설정 요약 출력 (이름, 타입, 설명, features)- 설정을 템플릿 변수로 변환 —
backend값에 따라has_serverpod등 백엔드 플래그 자동 설정 - Mason 브릭으로 모노레포 생성
auto_start가 true면 생성된 프로젝트에서make start실행
random_project_id, random_aws_id가 설정에 없으면 자동 생성됩니다.
예시#
# 설정 저장 (create 명령어에서)
cob create --type monorepo --name blueprint --save-config
# 저장된 설정 목록
cob create-from-config --list
# 설정으로 생성
cob create-from-config --config blueprint
# 출력 디렉토리 덮어쓰기
cob create-from-config --config blueprint --output-dir ../new-location
# 자동 시작 덮어쓰기
cob create-from-config --config blueprint --auto-start
설정 파일 수동 편집#
설정은 projects/ 디렉토리의 JSON 파일이며, 파일명(확장자 제외)이 --config 이름이 됩니다. 직접 생성·편집할 수 있습니다.
{
"type": "monorepo",
"name": "blueprint",
"description": "Blueprint - Cocode's service blueprint implementation",
"organization": "Cocode",
"tld": "im",
"subdomain": "blueprint",
"org_tld": "im",
"github_org": "coco-de",
"github_repo": "blueprint",
"github_visibility": "private",
"backend": "serverpod",
"enable_admin": true,
"admin_email": "dev@cocode.im",
"output_dir": "..",
"auto_start": false,
"features": ["app_router", "home", "mypage", "notification", "onboarding"]
}
필드 스키마#
| 구분 | 필드 |
|---|---|
| 필수 |
type
,
name
,
description
,
organization
,
tld
,
subdomain
,
org_tld
,
github_org
,
github_repo
,
github_visibility
|
| 선택 |
backend
(기본
serverpod
),
enable_admin
(기본
false
),
admin_email
,
apple_developer_id
,
itc_team_id
,
team_id
,
cert_cn
,
cert_ou
,
cert_o
,
cert_l
,
cert_st
,
cert_c
,
random_project_id
,
random_aws_id
,
aws_access_key_id
,
aws_secret_access_key
,
output_dir
,
auto_start
,
features
|
선택 필드 생략 시 기본값: admin_email/apple_developer_id → dev@example.com,
cert_cn/cert_o → organization 값, cert_ou → Production,
cert_l/cert_st → Seoul, cert_c → KR,
features → 빈 배열(브릭 기본 세트 적용).