[API reference](https://evolu.dev/docs/api-reference) › [@evolu/nodejs](https://evolu.dev/docs/api-reference/nodejs) › Spawn

```ts
type Spawn = (
  file: string,
  args: ReadonlyArray<string>,
  options?: {
    cwd?: string | URL;
  },
) => Task<void, SpawnError>;
```

Defined in: [packages/nodejs/src/Cli.ts:11](https://github.com/evoluhq/evolu/blob/59dabb7c56c68040b30d3919013adeb2b40bad10/packages/nodejs/src/Cli.ts#L11)

Runs a command with inherited stdio.