---
title: "Commands: booking website | Hostemi"
description: "site: build the draft, sections, pages, search settings, preview, publish and domains. Step-by-step help from the Hostemi docs for vacation rental hosts."
canonical: https://hostemi.com/docs/cli/reference/website
source: https://hostemi.com/docs/cli/reference/website.md
---

# Commands: booking website

site: build the draft, sections, pages, search settings, preview, publish and domains.

#### On this page

1. [Overview](#overview)
2. [site](#site)

## Overview

| Command | Mode | What it does |
| --- | --- | --- |
| [`site list`](#site-list) | reads | Websites of the account |
| [`site catalogue`](#site-catalogue) | reads | Section types, looks and font pairs |
| [`site starters`](#site-starters) | reads | Starter sites to begin from |
| [`site get`](#site-get) | reads | One website with its document |
| [`site create`](#site-create) | shows, then does | Create a draft website (shows the document first; private until the host publishes) |
| [`site save`](#site-save) | changes | Replace the draft document (--input site.json) |
| [`site theme`](#site-theme) | changes | Change the theme (look, colours, fonts) |
| [`site sections add`](#site-sections-add) | changes | Add a section |
| [`site sections update`](#site-sections-update) | changes | Edit a section |
| [`site sections move`](#site-sections-move) | changes | Move a section |
| [`site sections remove`](#site-sections-remove) | changes | Remove a section |
| [`site pages add`](#site-pages-add) | changes | Add a page |
| [`site pages update`](#site-pages-update) | changes | Edit a page |
| [`site pages remove`](#site-pages-remove) | changes | Remove a page |
| [`site seo`](#site-seo) | reads | Search and sharing settings |
| [`site seo set`](#site-seo-set) | changes | Change search and sharing settings |
| [`site publish-plan`](#site-publish-plan) | reads | What publishing would do |
| [`site publish`](#site-publish) | host approves | Ask the host to publish the site |
| [`site unpublish`](#site-unpublish) | host approves | Ask the host to take the site offline |
| [`site media`](#site-media) | reads | Media library of a site (ids for sections) |
| [`site booking`](#site-booking) | reads | How guests book on the website: pay online or request; the deposit |
| [`site booking set`](#site-booking-set) | changes | Change how guests book on the website |
| [`site preview`](#site-preview) | reads | A link that shows the draft for 7 days (not public, no booking) |
| [`site domains`](#site-domains) | reads | Your own domain on the website: state, DNS records to add, steps |
| [`site domains add`](#site-domains-add) | changes | Connect your own domain to the website |
| [`site domains check`](#site-domains-check) | reads | Check the domain’s DNS now |
| [`site domains primary`](#site-domains-primary) | changes | Choose the main domain name (the other one redirects to it) |
| [`site edit`](#site-edit) | = site save | Replace the draft document (--input site.json) |

Generated from `hostemi help --json` of hostemi 0.4.0: the same tree the CLI prints its help, its completions and its option checks from. Modes: [what each one does](https://hostemi.com/docs/cli/approvals).

## site

### hostemi site list

Websites of the account. Reads only. Never asks.

```bash
hostemi site list
```

Mode: reads · API: GET /public/v1/sites. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site catalogue

Section types, looks and font pairs. Reads only. Never asks.

```bash
hostemi site catalogue
```

| Option | Type | Description |
| --- | --- | --- |
| `--schemas` | string | 1 = add the JSON Schemas |

Mode: reads · API: GET /public/v1/sites/catalogue. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site starters

Starter sites to begin from. Reads only. Never asks.

```bash
hostemi site starters
```

Mode: reads · API: GET /public/v1/sites/starters. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site get

One website with its document. Reads only. Never asks.

```bash
hostemi site get <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

Mode: reads · API: GET /public/v1/sites/:id. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site create

Create a draft website (shows the document first; private until the host publishes). Shows what it would do first; does it with --yes. --dry-run stops at the preview.

```bash
hostemi site create --name <string>
```

| Option | Type | Description |
| --- | --- | --- |
| `--name` | string | Site name Required. |
| `--starter` | string | Starter id from \`site starters\` |
| `--properties` | list | Property ids (default: the first) |
| `--slug` | string | Address slug |
| `--languages` | list | en,hu,de,es,pt,it,pl,fr |
| `--document` | json | A full site document (JSON); or --input |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: shows, then does · API: POST /public/v1/sites. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi site create --name "Lake House" --starter lakeside --languages en,hu --yes
```

### hostemi site save

Replace the draft document (--input site.json). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site save <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--document` | json | The document (JSON) |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/sites/:id. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site theme

Change the theme (look, colours, fonts). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site theme <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--theme` | json | Theme JSON, e.g. {"look":"calm","accent":"#5b4bdb"} |
| `--apply-look-variants` | switch | Switch sections to the look’s variants |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/sites/:id/theme. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site sections add

Add a section. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site sections add <id> --type <string>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--type` | string | Section type from \`site catalogue\` Required. |
| `--variant` | string | Variant |
| `--page` | string | Page id (default home) |
| `--index` | int | Position |
| `--props` | json | Props JSON |
| `--hidden` | switch | Hidden |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: POST /public/v1/sites/:id/sections. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site sections update

Edit a section. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site sections update <id> <sectionId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |
| `<sectionId>` | yes | Section id |

| Option | Type | Description |
| --- | --- | --- |
| `--variant` | string | Variant |
| `--props` | json | Props JSON (merged unless --replace-props) |
| `--replace-props` | switch | Replace props instead of merging |
| `--hidden` | switch | on \| off |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/sites/:id/sections/:sectionId. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site sections move

Move a section. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site sections move <id> <sectionId> --index <int>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |
| `<sectionId>` | yes | Section id |

| Option | Type | Description |
| --- | --- | --- |
| `--index` | int | New position Required. |
| `--page` | string | Target page id |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: POST /public/v1/sites/:id/sections/:sectionId/move. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site sections remove

Remove a section. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site sections remove <id> <sectionId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |
| `<sectionId>` | yes | Section id |

| Option | Type | Description |
| --- | --- | --- |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: DELETE /public/v1/sites/:id/sections/:sectionId. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site pages add

Add a page. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site pages add <id> --kind <string> --title <json> --slug <json>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--kind` | string | home, rooms, room, gallery, about, area, blog-index, blog-post, … Required. |
| `--title` | json | Per language, e.g. {"en":"About","hu":"Rólunk"} Required. |
| `--slug` | json | Per language, e.g. {"en":"about","hu":"rolunk"} Required. |
| `--show-in-nav` | switch | In the menu |
| `--index` | int | Position |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: POST /public/v1/sites/:id/pages. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site pages update

Edit a page. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site pages update <id> <pageId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |
| `<pageId>` | yes | Page id |

| Option | Type | Description |
| --- | --- | --- |
| `--title` | json | Per language |
| `--slug` | json | Per language |
| `--show-in-nav` | switch | In the menu |
| `--index` | int | Position |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/sites/:id/pages/:pageId. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site pages remove

Remove a page. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site pages remove <id> <pageId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |
| `<pageId>` | yes | Page id |

| Option | Type | Description |
| --- | --- | --- |
| `--base` | string | updatedAt you last read; the API refuses the edit if the site changed since |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: DELETE /public/v1/sites/:id/pages/:pageId. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site seo

Search and sharing settings. Reads only. Never asks.

```bash
hostemi site seo <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

Mode: reads · API: GET /public/v1/sites/:id/seo. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site seo set

Change search and sharing settings. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site seo set <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--site` | json | Site-wide SEO JSON |
| `--pages` | json | Per-page SEO patches (JSON array) |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/sites/:id/seo. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site publish-plan

What publishing would do. Reads only. Never asks.

```bash
hostemi site publish-plan <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--publish` | switch | Plan for publishing (default) |

Mode: reads · API: GET /public/v1/sites/:id/publish-plan. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site publish

Ask the host to publish the site. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi site publish <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: POST /public/v1/sites/:id/publish. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site unpublish

Ask the host to take the site offline. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi site unpublish <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: POST /public/v1/sites/:id/unpublish. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site media

Media library of a site (ids for sections). Reads only. Never asks.

```bash
hostemi site media <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

Mode: reads · API: GET /public/v1/sites/:id/media. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site booking

How guests book on the website: pay online or request; the deposit. Reads only. Never asks.

```bash
hostemi site booking <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

Mode: reads · API: GET /public/v1/sites/:id/booking. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site booking set

Change how guests book on the website. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site booking set <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--mode` | string | online\_payment (needs Stripe), request (you confirm), default. instant (pay on arrival) only where instant book is switched on for your account One of: `online_payment`, `request`, `instant`, `default`. |
| `--deposit` | int | Part taken online at booking: 30, 50 or 100 (percent) |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/sites/:id/booking. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi site booking set <siteId> --mode request
```

### hostemi site preview

A link that shows the draft for 7 days (not public, no booking). Reads only. Never asks.

```bash
hostemi site preview <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: reads · API: POST /public/v1/sites/:id/preview-link. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site domains

Your own domain on the website: state, DNS records to add, steps. Reads only. Never asks.

```bash
hostemi site domains <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

Mode: reads · API: GET /public/v1/sites/:id/domains. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site domains add

Connect your own domain to the website. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site domains add <id> <domain>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |
| `<domain>` | yes | example.com, www.example.com or book.example.com |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: POST /public/v1/sites/:id/domains. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site domains check

Check the domain’s DNS now. Reads only. Never asks.

```bash
hostemi site domains check <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: reads · API: POST /public/v1/sites/:id/domains/check. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site domains primary

Choose the main domain name (the other one redirects to it). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi site domains primary <id> <domain>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Site id |
| `<domain>` | yes | One of the names connected to the site |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/sites/:id/domains/primary. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi site edit

Replace the draft document (--input site.json). A short name for [`hostemi site save`](https://hostemi.com/docs/cli/reference/website#site-save): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi site edit <id>
```

Documentation pages

Something missing from this page? Write to [hello@hostemi.com](mailto:hello@hostemi.com), or use the form on the [Help](https://hostemi.com/help) page.
