---
title: "pols checkpoint"
description: "Take, list and delete checkpoints of a sandbox's disk"
---

<!-- Generated by scripts/reference.mjs from the pols CLI's --help. Do not edit; run `npm run reference:sync`. -->

A checkpoint is a named snapshot of a sandbox's disk, taken at once, that
`pols rollback` brings back: take one before a risky step, roll back if it goes
wrong. It holds the disk only, not memory or processes; a running sandbox's disk
is taken as a power cut would leave it, so run sync first for files just written.
A sandbox keeps at most 10 checkpoints. Their disk space counts as the sandbox's
disk; they are deleted with the sandbox, and forks and templates do not copy them.

## Usage

```text
pols checkpoint [flags]
pols checkpoint [command]
```

## Aliases

```text
checkpoint, checkpoints
```

## Subcommands

| Command | Description |
| --- | --- |
| [`pols checkpoint create`](#pols-checkpoint-create) | Take a checkpoint of a sandbox's disk |
| [`pols checkpoint ls`](#pols-checkpoint-ls) | List a sandbox's checkpoints, oldest first |
| [`pols checkpoint rm`](#pols-checkpoint-rm) | Delete a checkpoint |

## Flags

```text
-h, --help   help for checkpoint
```

## pols checkpoint create

A checkpoint is a named snapshot of a sandbox's disk, taken at once, that
`pols rollback` brings back: take one before a risky step, roll back if it goes
wrong. It holds the disk only, not memory or processes; a running sandbox's disk
is taken as a power cut would leave it, so run sync first for files just written.
A sandbox keeps at most 10 checkpoints. Their disk space counts as the sandbox's
disk; they are deleted with the sandbox, and forks and templates do not copy them.

NAME is lowercase letters, digits and dashes, starting with a letter.

### Usage

```text
pols checkpoint create SANDBOX NAME [flags]
```

### Examples

```sh
pols checkpoint create web before-migration
```

### Flags

```text
-h, --help   help for create
```

## pols checkpoint ls

List a sandbox's checkpoints, oldest first

### Usage

```text
pols checkpoint ls SANDBOX [flags]
```

### Flags

```text
-h, --help   help for ls
```

## pols checkpoint rm

Delete a checkpoint

### Usage

```text
pols checkpoint rm SANDBOX CHECKPOINT [flags]
```

### Flags

```text
-h, --help   help for rm
```

The [global flags](/docs/reference/cli/#global-flags) work with this command too.
