# getCommand

> Function getCommand in pulumi-local.

<!-- Generated from the pulumi-local SDK. -->

Function getCommand in pulumi-local.

Invoke token: `local:index/getCommand:getCommand`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as local from "pulumi-local"

const result = await local.getCommand({
  command: "<command>",
})
```

`getCommandOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property               | Type       | Required | Description |
| ---------------------- | ---------- | -------- | ----------- |
| `allowNonZeroExitCode` | `boolean`  | no       |             |
| `arguments`            | `string[]` | no       |             |
| `command`              | `string`   | yes      |             |
| `stdin`                | `string`   | no       |             |
| `workingDirectory`     | `string`   | no       |             |

## Result

| Property               | Type       | Always present | Description |
| ---------------------- | ---------- | -------------- | ----------- |
| `allowNonZeroExitCode` | `boolean`  | no             |             |
| `arguments`            | `string[]` | no             |             |
| `command`              | `string`   | yes            |             |
| `exitCode`             | `number`   | yes            |             |
| `stderr`               | `string`   | yes            |             |
| `stdin`                | `string`   | no             |             |
| `stdout`               | `string`   | yes            |             |
| `workingDirectory`     | `string`   | no             |             |
