# deploy

Canonical URL: https://developers.iagenify.com/sdk/agent/tools/deploy/
Language: en

`deploy({ action, host?, kind?, label?, path?, server?, code?, … })`

Put a site, an app or a function online. Every publication is approved by the user, in every mode — and it deploys, it does not build.

Status: read, or publish · asked in full too · build first

## The actions {#actions}

| Free (read) | Asked (publish) |
| --- | --- |
| `kinds` · `list` · `get` | `create` · `push` |
| `history` · `usage` | `rollback` · `remove` |
| — | `domain` · `undomain` |
| — | `rename` — category `storage`, not publish |

`rename` changes the label the user reads and nothing else: the address is fixed at creation, because a URL that moves is an outage for whoever already has the link. It is the one action here that does not publish, so it does not carry the publish category.

## It deploys, it does not build {#not-a-build}

> **Build with bash or a terminal first**
>
> push sends a folder. Pointing it at a source directory publishes sources; pointing it at a build output publishes a site. The tool says so in its own description because the mistake is silent — the deploy succeeds.

## Three kinds {#kinds}

| kind | Is |
| --- | --- |
| `site` | Files, served as they are |
| `app` | Files plus a server module, named with `server` |
| `function` | A module, passed as `code` |

## The certificate is what makes you wait {#certificate}

A new level of address gets its own certificate, and until it is active the connection fails — which looks like a broken deploy. The hosting topic of [iagenify_docs](/sdk/agent/tools/iagenify-docs) says so, and the agent is told to read it before its first deploy.

## Some things are never published {#never-published}

Environment files, version-control folders and dependency folders are dropped, and what was dropped is reported. An app's server module is pulled out of the assets, so its source is not served.

- [api.hosts](/sdk/ref/hosts): Doing it from code.
- [publish](/sdk/agent/permissions/categories/publish): Why it is always asked.
- [Agent tools](/sdk/agent/tools): The 35, by family.
