---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [openshell](../index.md) / CommandRunner

# Type Alias: CommandRunner()

> **CommandRunner** = (`command`, `args`, `env?`) => `Promise`\<[`CommandResult`](../interfaces/CommandResult.md)\>

Defined in: [packages/b2c-tooling-sdk/src/openshell/apply.ts:52](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/36eea0d308f1312d1a446ec8813ed30b0bdba62c/packages/b2c-tooling-sdk/src/openshell/apply.ts#L52)

Runs an external command without a shell. Secrets are passed only through
`env`, never as arguments, so they do not appear in process listings or
printed commands.

## Parameters

### command

`string`

### args

`string`[]

### env?

`Record`\<`string`, `string`\>

## Returns

`Promise`\<[`CommandResult`](../interfaces/CommandResult.md)\>
