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