Advanced1 min
Desktop CLI Usage
How to use command line interface
Desktop CLI Usage
How to use the CLI tool included with Desktop (¥4,500).
📍 Basic Commands
# YAML → JSON
yamlforge convert input.yaml -o output.json
# JSON → YAML
yamlforge convert input.json -o output.yaml
# Output to stdout
yamlforge convert input.yaml⚙️ Options
| Option | Description | Default |
|---|---|---|
-o, --output | Output file | stdout |
--preserve-anchors | Keep anchors | true |
--preserve-comments | Keep comments | true |
--indent | Indent size | 2 |
--sort-keys | Sort keys | false |
📁 Batch Processing
# Convert all YAML in directory to JSON
yamlforge batch ./configs --pattern "*.yaml" --output ./json
# Process recursively
yamlforge batch ./configs --pattern "**/*.yaml" --recursive🔧 Pipeline Integration
# Read from stdin
cat config.yaml | yamlforge convert --stdin
# Combine with jq
yamlforge convert config.yaml | jq '.server.port'Tags
#cli#desktop#advanced#command-line#batch