---
title: "Write a preparation step"
description: "Use the generic extension point to derive a launch command."
kind: "guide"
id: "guide:custom-step"
module: "runtime-kit"
version: "1.0"
---

# Write a preparation step

[runtime-kit](../index.md) › Guides · Every page: [llms.txt](../llms.txt)

*Use the generic extension point to derive a launch command.*

## Choose the output type

[`BuildStep<T>`](../example/runtime/BuildStep.md) describes the result of preparation. A step can return a command line, a manifest, or another build plan.

```java
BuildStep<List<String>> launch = p -> List.of("java", p.mainClass());
```

## Apply the step

Pass a validated [`BuildPlan`](../example/runtime/BuildPlan.md) to the step. The result contains the command and its argument as separate entries.

```java
var command = launch.prepare(BuildPlan.defaults("example.Main"));
```

---

Next: [Prepare your first build](prepare-a-build.md)
