Commands: booking website

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

On this page
  1. Overview
  2. site

Overview

CommandModeWhat it does
site listreadsWebsites of the account
site cataloguereadsSection types, looks and font pairs
site startersreadsStarter sites to begin from
site getreadsOne website with its document
site createshows, then doesCreate a draft website (shows the document first; private until the host publishes)
site savechangesReplace the draft document (--input site.json)
site themechangesChange the theme (look, colours, fonts)
site sections addchangesAdd a section
site sections updatechangesEdit a section
site sections movechangesMove a section
site sections removechangesRemove a section
site pages addchangesAdd a page
site pages updatechangesEdit a page
site pages removechangesRemove a page
site seoreadsSearch and sharing settings
site seo setchangesChange search and sharing settings
site publish-planreadsWhat publishing would do
site publishhost approvesAsk the host to publish the site
site unpublishhost approvesAsk the host to take the site offline
site mediareadsMedia library of a site (ids for sections)
site bookingreadsHow guests book on the website: pay online or request; the deposit
site booking setchangesChange how guests book on the website
site previewreadsA link that shows the draft for 7 days (not public, no booking)
site domainsreadsYour own domain on the website: state, DNS records to add, steps
site domains addchangesConnect your own domain to the website
site domains checkreadsCheck the domain’s DNS now
site domains primarychangesChoose the main domain name (the other one redirects to it)
site edit= site saveReplace 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 list

Mode: 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
OptionTypeDescription
--schemasstring1 = 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 starters

Mode: 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>
ArgumentRequiredDescription
<id>yesSite 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>
OptionTypeDescription
--namestringSite name Required.
--starterstringStarter id from `site starters`
--propertieslistProperty ids (default: the first)
--slugstringAddress slug
--languageslisten,hu,de,es,pt,it,pl,fr
--documentjsonA full site document (JSON); or --input
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: shows, then does · API: POST /public/v1/sites. Every command also takes the global options.

Examples
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.

hostemi site save <id>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--documentjsonThe document (JSON)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--themejsonTheme JSON, e.g. {"look":"calm","accent":"#5b4bdb"}
--apply-look-variantsswitchSwitch sections to the look’s variants
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--typestringSection type from `site catalogue` Required.
--variantstringVariant
--pagestringPage id (default home)
--indexintPosition
--propsjsonProps JSON
--hiddenswitchHidden
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
<sectionId>yesSection id
OptionTypeDescription
--variantstringVariant
--propsjsonProps JSON (merged unless --replace-props)
--replace-propsswitchReplace props instead of merging
--hiddenswitchon | off
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
<sectionId>yesSection id
OptionTypeDescription
--indexintNew position Required.
--pagestringTarget page id
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
<sectionId>yesSection id
OptionTypeDescription
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--kindstringhome, rooms, room, gallery, about, area, blog-index, blog-post, … Required.
--titlejsonPer language, e.g. {"en":"About","hu":"Rólunk"} Required.
--slugjsonPer language, e.g. {"en":"about","hu":"rolunk"} Required.
--show-in-navswitchIn the menu
--indexintPosition
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
<pageId>yesPage id
OptionTypeDescription
--titlejsonPer language
--slugjsonPer language
--show-in-navswitchIn the menu
--indexintPosition
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
<pageId>yesPage id
OptionTypeDescription
--basestringupdatedAt you last read; the API refuses the edit if the site changed since
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--sitejsonSite-wide SEO JSON
--pagesjsonPer-page SEO patches (JSON array)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--publishswitchPlan 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite 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>
ArgumentRequiredDescription
<id>yesSite 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--modestringonline_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.
--depositintPart taken online at booking: 30, 50 or 100 (percent)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/sites/:id/booking. Every command also takes the global options.

Examples
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.

hostemi site preview <id>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite 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>
ArgumentRequiredDescription
<id>yesSite id
<domain>yesexample.com, www.example.com or book.example.com
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<id>yesSite id
<domain>yesOne of the names connected to the site
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
Something missing from this page? Write to [email protected], or use the form on the Help page.