> For the complete documentation index, see [llms.txt](https://docs.lenses.io/latest/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lenses.io/latest/k2k/k2k-standalone-tool/web-ui.md).

# Web UI

The K2K Tool provides a web interface that can be accessed when running the `server` command.&#x20;

{% hint style="danger" %}
Warning: Setting offsets should only be used when the K2K application has been stopped.&#x20;

If the K2K application is running, the offset reset might not be applied as the application will continue to commit offsets, potentially overwriting the reset operation.
{% endhint %}

#### WEB UI

<figure><img src="/files/xNS1URgoJIf0hKM6gkbh" alt=""><figcaption></figcaption></figure>

The web interface consists of:

* **Left Sidebar**: Displays the list of available pipelines.
* **Right Content Panel**: Shows detailed information about the selected pipeline

#### Actions

**Offset Management Actions**

* **Reset Individual Partition**: Click the "Reset" button in the ACTIONS column for a specific partition to reset that partition's offset to your desired offset.
* **Reset All Partitions**: Click the "Reset All" button above the committed offsets table to reset all partitions for all topics in the pipeline to offset 0 (earliest available offset).

#### Run

| flag/short                     | description                                                                                    | default   | required                              |
| ------------------------------ | ---------------------------------------------------------------------------------------------- | --------- | ------------------------------------- |
| `--file` / `-f`                | Comma-separated list of file(s) that define one k2k pipeline. Can be specified multiple times. | -         | Yes, if `--dir` is not specified.     |
| `--dir`                        | List of directories to watch for pipeline files. Can be specified multiple times.              | -         | Yes, unless `--file` is not specified |
| `--defaults` / `-d`            | File containing defaults for the k2k app. Can be specified multiple times.                     | -         | No                                    |
| `--host` / `-h`                | Host the server will accept requests from.                                                     | `0.0.0.0` | No                                    |
| `--port` / `-p`                | Port the server will accept requests from.                                                     | `8080`    | No                                    |
| `--template-engine` / `-g`     | Enable or disable the template engine.                                                         | `enabled` | No                                    |
| `--healthcheck-timeout` / `-e` | Duration to wait for a health check to complete.                                               | `5s`      | No                                    |
| `--watcher-interval` / `-w`    | Duration between checks for new files in the managed directories.                              | `10s`     | No                                    |
| `--verbosity`                  | Sets the log verbosity (e.g., `debug`, `info`, `warn`, `error`).                               | -         | No                                    |

```bash
# Start server with a single pipeline file
k2k-tool server -f /path/to/pipeline.k2k.yml

# Start server watching a directory
k2k-tool server -d /pipelines

# Start server with a pipeline defined over multiple files and custom port
k2k-tool server -f /path/to/pipeline1.k2k.yml,/path/to/pipeline2.k2k.yml -p 9090
```


---

# 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://docs.lenses.io/latest/k2k/k2k-standalone-tool/web-ui.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.
