# si job

Start, list, read, wait for or kill background jobs

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

Start, list, read, wait for or kill background jobs

## Usage

```bash
si job [OPTIONS] <COMMAND>
```

## Flags

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `--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 |  |  |

## si job start

Start a background job

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

| 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 -- |  |  |

| 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 |  |  |
| `--env` | `KEY=value` | A variable of this job 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 |  |  |

## si job ls

List jobs

```bash
si job ls [OPTIONS] [SVM]
```

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `svm` | `SVM` | The SVM to use; defaults to the one set with si use |  |  |

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `--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 |  |  |

## si job logs

Print a job log

```bash
si job logs [OPTIONS] [SVM] [NUMBER]
```

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `svm` | `SVM` | The SVM to use; defaults to the one set with si use |  |  |
| `number` | `NUMBER` | The job number, as listed by si job ls |  |  |

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `--follow` |  | Keep printing new lines until the job ends | false |  |
| `--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 |  |  |

## si job wait

Wait for a job and return its exit code

```bash
si job wait [OPTIONS] [SVM] [NUMBER]
```

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `svm` | `SVM` | The SVM to use; defaults to the one set with si use |  |  |
| `number` | `NUMBER` | The job number, as listed by si job ls |  |  |

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `--timeout` | `TIMEOUT` | Give up after this many seconds and exit 124; the job keeps running |  |  |
| `--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 |  |  |

## si job kill

Kill a job

```bash
si job kill [OPTIONS] [SVM] [NUMBER]
```

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `svm` | `SVM` | The SVM to use; defaults to the one set with si use |  |  |
| `number` | `NUMBER` | The job number, as listed by si job ls |  |  |

| Name | Value | Description | Default | Env |
| --- | --- | --- | --- | --- |
| `--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 |  |  |
