# Config Command

```
$ konduit config  [-m] [-o <output-file>] -p <config> [-pr <value>]  [-y]
```

**OPTIONS**

| Command Flags  | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| -m,--minified  | If set, the output JSON will be printed in a single line, without indentations. (Ignored for YAML configuration output).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| -o,--output    | Optional: If set, the generated JSON/YAML will be saved here. Otherwise, it's printed on the console.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| -p,--pipeline  | <p>A comma-separated list of sequence/graph pipeline steps to create boilerplate configuration from. </p><p></p><p>For sequences, allowed values are: \[<code>crop\_grid</code>, <code>crop\_fixed\_grid</code>, <code>dl4j</code>, <code>keras</code>, <code>draw\_bounding\_box</code>, <code>draw\_fixed\_grid</code>, <code>draw\_grid</code>, <code>draw\_segmentation</code>, <code>extract\_bounding\_box</code>, <code>camera\_frame\_capture</code>, <code>video\_frame\_capture</code>, <code>image\_to\_ndarray</code>, <code>logging</code>, <code>ssd\_to\_bounding\_box</code>, <code>samediff</code>, <code>show\_image</code>, <code>tensorflow</code>, <code>nd4jtensorflow</code>, <code>python</code>, <code>onnx</code>, <code>classifier\_output</code>]. </p><p></p><p>For graphs, the list item should be in the format '\<output>=\<type>(\<inputs>)' or '\[outputs]=switch(\<inputs>)' for switches. The pre-defined root input is named, 'input'. Examples are: </p><p>Pipeline step: 'a=tensorflow(input),b=dl4j(input)'</p><p>Merge Step: 'c=merge(a,b)'</p><p>Switch Step (int): '\[d1,d2,d3]=switch(int,select,input)'</p><p>Switch Step (string): '\[d1,d2,d3]=switch(string,select,x:1,y:2,z:3,input) '</p><p>Any Step: 'e=any(d1,d2,d3)'.</p> |
| -pr,--protocol | Protocol to use with the server. Allowed values are \[`http`, `grpc`, `mqtt`].                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -y,--yaml      | Set if you want the output to be a YAML configuration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
