Advanced1 分
Desktop版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
# 標準出力に出力
yamlforge convert input.yaml⚙️ オプション
| オプション | 説明 | デフォルト |
|---|---|---|
-o, --output | 出力ファイル | 標準出力 |
--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🔧 パイプライン連携
# 標準入力から読み込み
cat config.yaml | yamlforge convert --stdin
# jqと組み合わせ
yamlforge convert config.yaml | jq '.server.port'タグ
#cli#desktop#advanced#command-line#batch