# si exec

Run a program; put program arguments after --

Source: https://slashinfra.com/docs/cli/exec
Last modified: 2026-11-30T16:36:19.000Z

Run a program; put program arguments after --

## Usage

```bash
si exec [OPTIONS] [SVM] [-- <PROGRAM>...]
```

## Arguments

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `svm` | `SVM` | The SVM to use; defaults to the one set with si use |  |  |
| `program` | `PROGRAM` | The program and its arguments, after -- |  |  |

## Flags

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `--command` | `COMMAND` | Run this shell script with bash -c instead of a program |  |  |
| `--cwd` | `CWD` | The working directory in the SVM; the home directory by default |  |  |
| `--timeout` | `TIMEOUT` | Give up after this many seconds, from 1 to 30; the command exits 124 |  |  |
| `--env` | `KEY=value` | A variable of this command only; repeat it. The value is split at its first `=` |  |  |
| `--json` |  | Print the result as JSON | false |  |
| `--project` | `PROJECT` | The project of the command: an id or a name; `SI_PROJECT` when the flag is absent |  | SI_PROJECT |
| `--help` |  | Print help |  |  |
