> ## Documentation Index
> Fetch the complete documentation index at: https://momentic.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# momentic quarantine

> Quarantine or unquarantine tests from the CLI.

Manage quarantined tests for the current project. Quarantined tests still run by
default but their results do not affect pipeline success, see
[`run --skip-quarantined`](/cli-reference/momentic/commands/run) for opt-out
behavior.

```bash theme={null}
npx momentic quarantine add <test>
```

## `add`

Quarantine a test so it stops impacting pipeline status.

```bash theme={null}
npx momentic quarantine add <test>
```

### Arguments

<ParamField path="<test>" type="string">
  Name or path of the test to quarantine. Omit to pick interactively.
</ParamField>

### Options

<ParamField path="--reason <reason>" type="string">
  Free-form reason shown alongside the test in the Momentic dashboard.
</ParamField>

## `list`

List every currently quarantined test in the project.

```bash theme={null}
npx momentic quarantine list
```

## `remove`

Unquarantine a test so its result counts again.

```bash theme={null}
npx momentic quarantine remove <test>
```

### Arguments

<ParamField path="<test>" type="string">
  Name or path of the test to unquarantine. Omit to pick interactively.
</ParamField>

### Options

<ParamField path="--reason <reason>" type="string">
  Optional reason recorded alongside the change.
</ParamField>

## Examples

Quarantine a flaky test with a reason:

```bash theme={null}
npx momentic quarantine add tests/checkout/flaky.yaml --reason "investigating CHK-123"
```

List quarantined tests:

```bash theme={null}
npx momentic quarantine list
```
