Advanced1 분
데스크톱 CLI 사용법
명령줄 인터페이스 사용 방법
Desktop CLI 사용법
Desktop(¥4,500)에 포함된 CLI 도구 사용 방법입니다.
📍 기본 명령어
# YAML → JSON
yamlforge convert input.yaml -o output.json
# JSON → YAML
yamlforge convert input.json -o output.yaml
# stdout으로 출력
yamlforge convert input.yaml⚙️ 옵션
| 옵션 | 설명 | 기본값 |
|---|---|---|
-o, --output | 출력 파일 | stdout |
--preserve-anchors | 앵커 유지 | true |
--preserve-comments | 주석 유지 | true |
--indent | 들여쓰기 크기 | 2 |
--sort-keys | 키 정렬 | false |
📁 배치 처리
# 디렉토리의 모든 YAML을 JSON으로 변환
yamlforge batch ./configs --pattern "*.yaml" --output ./json
# 재귀적으로 처리
yamlforge batch ./configs --pattern "**/*.yaml" --recursive🔧 파이프라인 통합
# stdin에서 읽기
cat config.yaml | yamlforge convert --stdin
# jq와 결합
yamlforge convert config.yaml | jq '.server.port'태그
#cli#desktop#advanced#command-line#batch