
---
url: /mod/env/exec.md
---
# x env exec

Run the executable file using the specified pkg application

## Examples

Run the helloworld.js file using v18.12.0 node

```sh
x env exec node=v18.12.0 -- node helloworld.js
```

## Usage

```sh
x env exec <#1>
```

## Arguments

| Argument | Description |
| ------- | ------- |
| `#1` | Path to executable file |
