---
title: "pols fork"
description: "Fork a sandbox into a new running sandbox with a copy of its disk"
---

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

Fork a sandbox into a new running sandbox with a copy of its disk

## Usage

```text
pols fork SANDBOX [flags]
```

## Flags

```text
    --allow stringArray       CIDR prefix the sandbox may reach (repeatable; requires --egress allowlist)
    --egress string           outbound network policy (default the source's): default (public internet), allowlist (only --allow destinations) or none
-h, --help                    help for fork
    --name string             name of the fork
    --no-wait                 return at once instead of waiting for the sandbox to get there
    --secret stringArray      vault entry to add to the source's, as the environment variable of its name (repeatable)
    --wait-timeout duration   how long to wait (default 5m0s)
```

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