> 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/build-command.md).

# Build Command

```
$ konduit build [-ad <value>] [-a <value>] [-c <value>]  [-dt <value>] [-d
       <value>] [-m <value>] [-o <value>] [-p <value>] [-s <value>]
```

**OPTIONS**

| Command Flags        | Description                                                                                                                                                                                                                                                                                                                                                      |
| -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| -ad,--addDep         | Additional dependencies to include, in GAV(C) format: "group\_id:artifact\_id:version" / "group\_id:artifact\_id:version:classifier".                                                                                                                                                                                                                            |
| -a,--arch            | The target CPU architecture. Must be one of {`x86`, `x86_avx2`, `x86_avx512`, `armhf`, `arm64`, `ppc64le`}. Note that most modern desktops can be built with `x86_avx2`, which is the default.                                                                                                                                                                   |
| -c,--config          | <p>Configuration for the deployment types specified via -dt/--deploymentType.</p><p>For example, "-c jar.outputdir=/some/dir jar.name=my.jar" etc.</p><p>Configuration keys:</p><p>JAR deployment config keys: jar.outputdir, jar.name,jar.groupid, jar.artifactid, jar.version</p><p>ClassPathDeployment config keys: classpath.outputFile, classpath.type </p> |
| -dt,--deploymentType | The deployment types to use: `JAR`, `DOCKER`, `EXE`, `WAR`, `RPM`, `DEB` or `TAR` (case insensitive).                                                                                                                                                                                                                                                            |
| -d,--device          | Compute device to be used. If not set: artifacts are build for `CPU` only. Valid values: `CPU`, `CUDA_10.0`, `CUDA_10.1`, `CUDA_10.2` (case insensitive).                                                                                                                                                                                                        |
| -m,--modules         | Names of the Konduit-Serving modules to include, as a comma-separated list of values. Note that this is not necessary when a pipeline is included (via `-p/--pipeline`), as the modules will be inferred automatically based on the pipeline contents.                                                                                                           |
| -o,--os              | Operating systems to build for. Valid values: {`linux`, `windows`, `mac`} (case insensitive). If not set, the current system OS will be used.                                                                                                                                                                                                                    |
| -p,--pipeline        | Path to a pipeline JSON file.                                                                                                                                                                                                                                                                                                                                    |
| -s,--serverType      | Type of server - `HTTP` or `GRPC` (case insensitive).                                                                                                                                                                                                                                                                                                            |
