> For the complete documentation index, see [llms.txt](https://serving.konduit.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://serving.konduit.ai/references/cli-commands/config-command.md).

# 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://serving.konduit.ai/references/cli-commands/config-command.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
