# deploys()

Canonical URL: https://developers.iagenify.com/sdk/ref/host/deploys/
Language: en

`host.deploys() → Promise<Deploy[]>`

The deploy history, newest first. Each one can be put back online.

Status: GET · free · newest first

```javascript
for (const deploy of await host.deploys()) {
  console.log(deploy.id, deploy.createdAt, deploy.files, deploy.bytes, deploy.skipped?.length ?? 0);
}
```

## What an entry carries {#what}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `id` | string |  | What [rollback()](/sdk/ref/host/rollback) takes. |
| `createdAt` | string |  | When it was deployed. |
| `files · bytes` | integer |  | How much went. |
| `skipped` | array |  | What was dropped, and why. |

## skipped is worth reading afterwards {#skipped}

> **A missing file is usually in here**
>
> A page that does not appear on a deployed site is most often a file whose name matched something that is never published. The history says so, after the fact, without having to deploy again to find out.

## The newest is not always what is online {#current}

After a rollback, `host.current` is an earlier one. Compare the two rather than assuming the top of the list is serving.

## History is what makes a rollback possible {#retention}

A deploy that is no longer in it cannot be put back. For a version that matters, keep the files on your side as well — the history is a convenience, not an archive.

- [rollback()](/sdk/ref/host/rollback): Putting one back.
- [deploy()](/sdk/ref/host/deploy): Putting files online.

```python
for deploy in host.deploys():
    print(deploy["id"], deploy["createdAt"], deploy["files"], deploy["bytes"], len(deploy.get("skipped") or []))
```
