# K2K CLI Reference

K2K can be started using the following command:<br>

```
k2k start -f <pipeline.yaml> -t
```

The following configuration flags can also be specified:

| Flag                              | Type                   | Default                | Description                                                             |
| --------------------------------- | ---------------------- | ---------------------- | ----------------------------------------------------------------------- |
| `-f`, `--file`                    | string                 | -                      | Specifies one or more files that define the K2K Pipeline.               |
| `-t`, `--telemetry`               | -                      | -                      | When provided, telemetry collection will be enabled.                    |
| `-g`, `--template-engine`         | `enabled` / `disabled` | `enabled`              | Toggles variable substitution within the pipeline definition file(s).   |
| `-l`, `--termination-log`         | path                   | `/dev/termination-log` | Path where K2K will write the failure that caused the app to terminate. |
| `-w`, `--termination-log-enabled` | `enabled` / `disabled` | `enabled`              | Enables/Disables writing the termination failure to a file.             |


---

# Agent Instructions: 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:

```
GET https://docs.lenses.io/latest/k2k/configuration/k2k-cli-reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
