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

OptionDescriptionDefault
-o, --outputOutput filestdout
--preserve-anchorsKeep anchorstrue
--preserve-commentsKeep commentstrue
--indentIndent size2
--sort-keysSort keysfalse

📁 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