Home Explore Blog CI



docker

1st chunk of `content/reference/api/extensions-sdk/SpawnOptions.md`
1379c3e26b7693ee84ee93f198b8180b41f476e8f938ddc400000001000002d6
---
title: "Interface: SpawnOptions"
description: Docker extension API reference
keywords: Docker, extensions, sdk, API, reference
aliases:
 - /desktop/extensions-sdk/dev/api/reference/interfaces/SpawnOptions/
 - /extensions/extensions-sdk/dev/api/reference/interfaces/SpawnOptions/
---

**`Since`**

0.3.0

## Hierarchy

- [`ExecOptions`](ExecOptions.md)

  ↳ **`SpawnOptions`**

## Properties

### cwd

• `Optional` **cwd**: `string`

#### Inherited from

[ExecOptions](ExecOptions.md).[cwd](ExecOptions.md#cwd)

___

### env

• `Optional` **env**: `ProcessEnv`

#### Inherited from

[ExecOptions](ExecOptions.md).[env](ExecOptions.md#env)

___

### stream

• **stream**: [`ExecStreamOptions`](ExecStreamOptions.md)

Title: SpawnOptions Interface Documentation
Summary
This documentation describes the `SpawnOptions` interface in the Docker extension API, which extends `ExecOptions`. It includes properties for setting the current working directory (`cwd`), environment variables (`env`), and stream options (`stream`). The interface has been available since version 0.3.0.