# Overview

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

One host: deploy to it, roll it back, attach a domain, read what it is using.

Status: 7 methods · domains · slug is fixed

| Member | Does |
| --- | --- |
| [deploy(options)](/sdk/ref/host/deploy) | Puts files, or code, online. |
| [update({ label })](/sdk/ref/host/update) | Renames it — the label only. |
| [deploys()](/sdk/ref/host/deploys) | The history. |
| [rollback(deployId)](/sdk/ref/host/rollback) | Puts an earlier deploy back online. |
| [usage()](/sdk/ref/host/usage) | What it uses. |
| [remove()](/sdk/ref/host/remove) | Deletes it. |
| [domains](/sdk/ref/host/domains/attach) | `attach` · `list` · `detach`. |

```javascript
const site = await api.hosts.get(id);

await site.deploy({ files: "./out" });
await site.domains.attach("www.example.com");
```

## The slug cannot change {#slug}

It is the address. Changing it would break shared links, the attached domain and the certificate — `update()` changes the label only, and another address means another host.

## Deploying is not building {#deploy-not-build}

Build where the code is; send the result here. A deploy pointed at a source folder publishes sources, successfully — which is what makes it worth saying twice.

- [deploy()](/sdk/ref/host/deploy): Putting files online.
- [rollback()](/sdk/ref/host/rollback): Going back.
- [domains.attach()](/sdk/ref/host/domains/attach): A domain of your own.

```python
site = api.hosts.get(host_id)

site.deploy(files="./out")
site.domains.attach("www.example.com")
```
