# kosa8 up

Detect, build and run a project — no Dockerfile required

## Usage

```
kosa8 up [PATH]
```

kosa8 up inspects a directory, writes a Dockerfile if there isn't one,
builds the image and runs it with its port published.

The generated Dockerfile is left in place: read it, edit it, commit it.
An existing Dockerfile is always used as-is and never overwritten.

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--detach, -d` | bool | run in the background |  |
| `--plan` | bool | print the Dockerfile that would be used and stop |  |
| `--port, -p` | int | host port to publish (default: detected) | `0` |
| `--tag, -t` | string | image name (default: directory name) |  |

## Example

```
  kosa8 up
  kosa8 up ./api -p 8080 -d
  kosa8 up --plan        # show what it would build and run
```

---
Source: https://docs.kosa8.com/reference/up/
