const output = await window.ddClient.execDockerCmd("info");
```
> [!WARNING]
>
> It will be removed in a future version. Use [exec](DockerCommand.md#exec) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `cmd` | `string` | The command to execute. |
| `...args` | `string`[] | The arguments of the command to execute. |
#### Returns
`Promise`<[`ExecResultV0`](ExecResultV0.md)\>
The result will contain both the standard output and the standard error of the executed command:
```json
{
"stderr": "...",
"stdout": "..."
}
```
For convenience, the command result object also has methods to easily parse it depending on the output format:
- `output.lines(): string[]` splits output lines.
- `output.parseJsonObject(): any` parses a well-formed JSON output.
- `output.parseJsonLines(): any[]` parses each output line as a JSON object.
If the output of the command is too long, or you need to get the output as a stream you can use the
* spawnDockerCmd function:
```typescript
window.ddClient.spawnDockerCmd("logs", ["-f", "..."], (data, error) => {
console.log(data.stdout);
});
```
#### Inherited from
DockerDesktopClientV0.execDockerCmd
___
### spawnDockerCmd
▸ **spawnDockerCmd**(`cmd`, `args`, `callback`): `void`
> [!WARNING]
>
> It will be removed in a future version. Use [exec](DockerCommand.md#exec) instead.
#### Parameters
| Name | Type |
| :------ | :------ |
| `cmd` | `string` |
| `args` | `string`[] |
| `callback` | (`data`: `any`, `error`: `any`) => `void` |
#### Returns
`void`
#### Inherited from
DockerDesktopClientV0.spawnDockerCmd
___
### openExternal
▸ **openExternal**(`url`): `void`
Opens an external URL with the system default browser.
```typescript
window.ddClient.openExternal("https://docker.com");
```
> [!WARNING]
>
> It will be removed in a future version. Use [openExternal](Host.md#openexternal) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `url` | `string` | The URL the browser opens (must have the protocol `http` or `https`). |
#### Returns
`void`
#### Inherited from
DockerDesktopClientV0.openExternal
___
## Toast Methods
### toastSuccess
▸ **toastSuccess**(`msg`): `void`
Display a toast message of type success.
```typescript
window.ddClient.toastSuccess("message");
```
>**Warning`**
>
> It will be removed in a future version. Use [success](Toast.md#success) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `msg` | `string` | The message to display in the toast. |
#### Returns
`void`
#### Inherited from
DockerDesktopClientV0.toastSuccess
___
### toastWarning
▸ **toastWarning**(`msg`): `void`
Display a toast message of type warning.
```typescript
window.ddClient.toastWarning("message");
```
> [!WARNING]
>
> It will be removed in a future version. Use [warning](Toast.md#warning) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `msg` | `string` | The message to display in the toast. |
#### Returns
`void`
#### Inherited from
DockerDesktopClientV0.toastWarning
___
### toastError
▸ **toastError**(`msg`): `void`
Display a toast message of type error.
```typescript
window.ddClient.toastError("message");
```
> [!WARNING]
>
> It will be removed in a future version. Use [error](Toast.md#error) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `msg` | `string` | The message to display in the toast. |
#### Returns
`void`
#### Inherited from
DockerDesktopClientV0.toastError