> ## Documentation Index
> Fetch the complete documentation index at: https://opensandbox-oc-s-762ac928075c46d2828bcb22.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# oc patch

> Manage checkpoint patches

Patches are scripts that run when a sandbox is spawned from a checkpoint.

## `oc patch create <checkpoint-id>`

[HTTP API →](/api-reference/patches/create)

<ParamField query="--script" type="string" required>
  Path to script file, or `-` for stdin
</ParamField>

<ParamField query="--description" type="string">
  Patch description
</ParamField>

```bash theme={null}
oc patch create cp-xyz --script=./setup.sh --description="Install deps"
echo "apt install -y curl" | oc patch create cp-xyz --script=-
```

***

## `oc patch list <checkpoint-id>`

[HTTP API →](/api-reference/patches/list)

Output columns: `ID`, `SEQ`, `DESCRIPTION`, `STRATEGY`, `CREATED`

***

## `oc patch delete <checkpoint-id> <patch-id>`

[HTTP API →](/api-reference/patches/delete)
