---
title: "pols deploys"
description: "Start, list and follow a site's deploys"
---

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

A site imported from a GitHub repository (pols sites import) is built by
deploys: pols fetches the commit into a build sandbox of your org, runs the
project's install and build commands there, publishes the output as the
site's new live version and deletes the sandbox. The build is billed as
sandbox time. Pushes to the site's branch deploy again by themselves; your
org builds one deploy at a time, so the others wait as queued.

## Usage

```text
pols deploys [command]
```

## Subcommands

| Command | Description |
| --- | --- |
| [`pols deploys log`](#pols-deploys-log) | Print a deploy's build log |
| [`pols deploys ls`](#pols-deploys-ls) | List a site's deploys, newest first |
| [`pols deploys start`](#pols-deploys-start) | Deploy the head of a site's source branch |

## Flags

```text
-h, --help   help for deploys
```

## pols deploys log

Print the build log of a deploy (its number or ID; default the newest),
with vault values and common token formats redacted. `--follow` prints what
comes until the deploy is over, and fails when it did not get ready.

### Usage

```text
pols deploys log SITE [DEPLOY] [flags]
```

### Examples

```sh
pols deploys log my-site --follow
pols deploys log my-site 3
```

### Flags

```text
-f, --follow   keep printing until the deploy is over
-h, --help     help for log
```

## pols deploys ls

List a site's deploys, newest first

### Usage

```text
pols deploys ls SITE [flags]
```

### Flags

```text
-h, --help        help for ls
    --limit int   how many deploys, 1 to 100 (default 20)
```

## pols deploys start

Deploy the head of a site's source branch

### Usage

```text
pols deploys start SITE [flags]
```

### Examples

```sh
pols deploys start my-site
```

### Flags

```text
-h, --help   help for start
```

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