# kosa8 cloud template build

Build an org template from a Dockerfile or an image

## Usage

```
kosa8 cloud template build --name NAME (-f Dockerfile | --image REF)
```

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--build-arg` | stringArray | a Dockerfile build-time variable KEY=VALUE | `[]` |
| `--file, -f` | string | a Dockerfile (no build context: COPY/ADD only --from= a stage or a URL) |  |
| `--image` | string | build from this image instead (a tag or an @sha256 digest) |  |
| `--name` | string | the template's name (lower-case letters, digits, '.', '_' or '-') |  |
| `--no-wait` | bool | return once it is queued instead of waiting for the build |  |
| `--setup` | string | a command run once in it before it is saved (sh -c) |  |
| `--size` | string | its size: 2x4 (default), 4x8, 8x16 or 16x32 |  |

## Example

```
  kosa8 cloud template build --name py-ml -f Dockerfile --size 4x8
  kosa8 cloud template build --name django-11099 --image swebench/sweb.eval.x86_64.django_1776_django-11099@sha256:… --setup 'cd /testbed && pip install -e .'
```

---
Source: https://docs.kosa8.com/reference/cloud-template-build/
