---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/claude_code_cli/types/interfaces/ExecaLike.md
description: The slice of execa this adapter uses to spawn the wrapper.
---

# Interface: ExecaLike()

Defined in: [src/batteries/llm/claude\_code\_cli/types.ts:167](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/types.ts#L167)

The slice of execa this adapter uses to spawn the wrapper.

```ts
ExecaLike(
   cmd: string,
   args: readonly string[],
   options: {
  cleanup?: boolean;
  cwd?: string;
  env?: Record<string, string | undefined>;
}): {
  catch: <TResult>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null) => Promise<
     | {
     exitCode: number | null;
   }
    | TResult>;
  exitCode: number | null;
  stdin:   | {
     end: void;
     write: void;
   }
     | null;
  stdout:   | {
     on: void;
   }
     | null;
  then: <TResult1, TResult2>(onfulfilled?:
     | ((value: {
     exitCode: number | null;
   }) => TResult1 | PromiseLike<TResult1>)
    | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null) => Promise<TResult1 | TResult2>;
  kill: boolean;
};
```

Defined in: [src/batteries/llm/claude\_code\_cli/types.ts:168](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/types.ts#L168)

The slice of execa this adapter uses to spawn the wrapper.

## Parameters

| Parameter          | Type                                                                                                                                                                                     |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `cmd`              | `string`                                                                                                                                                                                 |
| `args`             | readonly `string`\[]                                                                                                                                                                      |
| `options`          | { `cleanup?`: `boolean`; `cwd?`: `string`; `env?`: [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)<`string`, `string` | `undefined`>; } |
| `options.cleanup?` | `boolean`                                                                                                                                                                                |
| `options.cwd?`     | `string`                                                                                                                                                                                 |
| `options.env?`     | [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)<`string`, `string` | `undefined`>                                                         |

## Returns

| Name       | Type                                                                                                                                                                                                                                                                                         | Defined in                                                                                                                                            |
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `catch()`  | <`TResult`>(`onrejected?`: ((`reason`: `any`) => `TResult` | `PromiseLike`<`TResult`>) | `null`) => `Promise`< | { `exitCode`: `number` | `null`; } | `TResult`>                                                                                                                | [src/batteries/llm/claude\_code\_cli/types.ts:185](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/types.ts#L185) |
| `exitCode` | `number` | `null`                                                                                                                                                                                                                                                                           | [src/batteries/llm/claude\_code\_cli/types.ts:183](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/types.ts#L183) |
| `stdin`    | | { `end`: `void`; `write`: `void`; } | `null`                                                                                                                                                                                                                                           | [src/batteries/llm/claude\_code\_cli/types.ts:177](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/types.ts#L177) |
| `stdout`   | | { `on`: `void`; } | `null`                                                                                                                                                                                                                                                             | [src/batteries/llm/claude\_code\_cli/types.ts:178](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/types.ts#L178) |
| `then()`   | <`TResult1`, `TResult2`>(`onfulfilled?`: | ((`value`: { `exitCode`: `number` | `null`; }) => `TResult1` | `PromiseLike`<`TResult1`>) | `null`, `onrejected?`: ((`reason`: `any`) => `TResult2` | `PromiseLike`<`TResult2`>) | `null`) => `Promise`<`TResult1` | `TResult2`> | [src/batteries/llm/claude\_code\_cli/types.ts:184](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/types.ts#L184) |
| `kill()`   | (`signal?`: `string`) => `boolean`                                                                                                                                                                                                                                                           | [src/batteries/llm/claude\_code\_cli/types.ts:182](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/claude_code_cli/types.ts#L182) |
