Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

EN

@shumoku/cli · 0.2.28 · command

shumoku render [options] <input>

コマンドソース

CLIの説明は英語のtyped command modelをcanonical sourceとして表示しています。

Render a network YAML to SVG/HTML/PNG

入力

<input> — Network YAML file (use - for stdin)

オプション

オプション 説明 値 既定値
-f, --format <type> Output format svg | html | png auto from extension
-o, --output <file> Output file string output.svg
--theme <theme> Theme light | dark light
--scale <number> PNG scale factor string 2
-h, --help Show help boolean —
-v, --version Show version boolean —

例

shumoku render network.yaml -o diagram.svg
shumoku render network.yaml -f html -o diagram.html
shumoku render network.yaml -f png -o diagram.png
cat network.yaml | shumoku render - -o diagram.svg

apps/cli/src/command.ts