---
title: "pols processes"
description: "List, follow and signal a sandbox's detached processes"
---

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

A detached process is a command started with `pols exec --detach`: it keeps
running when pols exits or the connection drops. The sandbox keeps the last
1 MiB of its combined stdout and stderr, and at most 32 processes. Standby
freezes them with the sandbox; a stop ends them. A key limited to a sandbox
user sees only that user's processes.

## Usage

```text
pols processes [flags]
pols processes [command]
```

## Aliases

```text
processes, ps
```

## Subcommands

| Command | Description |
| --- | --- |
| [`pols processes kill`](#pols-processes-kill) | Send a signal to a detached process (default TERM) |
| [`pols processes logs`](#pols-processes-logs) | Print a detached process's output |
| [`pols processes ls`](#pols-processes-ls) | List a running sandbox's detached processes |

## Flags

```text
-h, --help   help for processes
```

## pols processes kill

Send a signal to a detached process's session: the command and what it
started, unless they started a session of their own.

### Usage

```text
pols processes kill SANDBOX PROCESS [flags]
```

### Examples

```sh
pols processes kill web proc_k3f9a0b1c2d4
pols processes kill --signal KILL web proc_k3f9a0b1c2d4
```

### Flags

```text
-h, --help            help for kill
-s, --signal string   TERM, KILL, INT, HUP, QUIT, USR1, USR2, STOP or CONT (default "TERM")
```

## pols processes logs

Print the output a detached process has written, from `--offset` (a byte offset
into its whole output). With -f, keep printing until it has ended, then exit
with its exit code; pols can be stopped and run again at any time.

### Usage

```text
pols processes logs SANDBOX PROCESS [flags]
```

### Examples

```sh
pols processes logs web proc_k3f9a0b1c2d4
pols processes logs -f web proc_k3f9a0b1c2d4
```

### Flags

```text
-f, --follow       keep printing until the process has ended
-h, --help         help for logs
    --offset int   start at this byte of the output
```

## pols processes ls

List a running sandbox's detached processes

### Usage

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

### Flags

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

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