Commands: booking website
site: build the draft, sections, pages, search settings, preview, publish and domains.
Overview
| Command | Mode | What it does |
|---|---|---|
site list | reads | Websites of the account |
site catalogue | reads | Section types, looks and font pairs |
site starters | reads | Starter sites to begin from |
site get | reads | One website with its document |
site create | shows, then does | Create a draft website (shows the document first; private until the host publishes) |
site save | changes | Replace the draft document (--input site.json) |
site theme | changes | Change the theme (look, colours, fonts) |
site sections add | changes | Add a section |
site sections update | changes | Edit a section |
site sections move | changes | Move a section |
site sections remove | changes | Remove a section |
site pages add | changes | Add a page |
site pages update | changes | Edit a page |
site pages remove | changes | Remove a page |
site seo | reads | Search and sharing settings |
site seo set | changes | Change search and sharing settings |
site publish-plan | reads | What publishing would do |
site publish | host approves | Ask the host to publish the site |
site unpublish | host approves | Ask the host to take the site offline |
site media | reads | Media library of a site (ids for sections) |
site booking | reads | How guests book on the website: pay online or request; the deposit |
site booking set | changes | Change how guests book on the website |
site preview | reads | A link that shows the draft for 7 days (not public, no booking) |
site domains | reads | Your own domain on the website: state, DNS records to add, steps |
site domains add | changes | Connect your own domain to the website |
site domains check | reads | Check the domain’s DNS now |
site domains primary | changes | Choose the main domain name (the other one redirects to it) |
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.
site
hostemi site list
Websites of the account. Reads only. Never asks.
hostemi site listMode: reads · API: GET /public/v1/sites. Every command also takes the global options.
hostemi site catalogue
Section types, looks and font pairs. Reads only. Never asks.
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.
hostemi site starters
Starter sites to begin from. Reads only. Never asks.
hostemi site startersMode: reads · API: GET /public/v1/sites/starters. Every command also takes the global options.
hostemi site get
One website with its document. Reads only. Never asks.
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.
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.
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.
hostemi site create --name "Lake House" --starter lakeside --languages en,hu --yeshostemi site save
Replace the draft document (--input site.json). Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site theme
Change the theme (look, colours, fonts). Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site sections add
Add a section. Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site sections update
Edit a section. Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site sections move
Move a section. Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site sections remove
Remove a section. Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site pages add
Add a page. Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site pages update
Edit a page. Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site pages remove
Remove a page. Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site seo
Search and sharing settings. Reads only. Never asks.
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.
hostemi site seo set
Change search and sharing settings. Changes data at once: asks first, or --yes. --dry-run prints the request instead.
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.
hostemi site publish-plan
What publishing would do. Reads only. Never asks.
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.
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).
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.
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).
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.
hostemi site media
Media library of a site (ids for sections). Reads only. Never asks.
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.
hostemi site booking
How guests book on the website: pay online or request; the deposit. Reads only. Never asks.
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.
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.
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.
hostemi site booking set <siteId> --mode requesthostemi site preview
A link that shows the draft for 7 days (not public, no booking). Reads only. Never asks.
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.
hostemi site domains
Your own domain on the website: state, DNS records to add, steps. Reads only. Never asks.
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.
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.
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.
hostemi site domains check
Check the domain’s DNS now. Reads only. Never asks.
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.
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.
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.
hostemi site edit
Replace the draft document (--input site.json). A short name for hostemi site save: it runs that command, with the arguments shown here and that command's options.
hostemi site edit <id>