Commands: properties and listings

properties, units, listings, photos, media and amenities.

Overview

CommandModeWhat it does
listings platform-settingsreadsA listing's settings only this platform has (Airbnb: taxes, expectations, check-out tasks, welcome message…)
listings platform-settings setchangesChange a listing's platform-only settings (a patch; taxes, fees and long-stay cancellation ask the host)
listings opportunitiesreadsThe platform's opportunities for a listing (Airbnb), read now
listings opportunities applychangesApply an opportunity to a listing (the host approves)
listings listreadsEvery listing of a connection as a platform listing
listings getreadsOne listing on one platform: policy, instant book, publish state, promotions
listings policychangesThe listing’s own cancellation policy and instant-book mode on a platform
listings unpublish-reasonsreadsThe platform’s unpublish reasons
properties listreadsProperties of the account
properties getreadsOne property with listings and price plans
properties unitsreadsListings of one property
properties createchangesCreate a property (listings come next with `units create`)
properties updatechangesUpdate a property (fields left out stay)
properties house-rulesreadsHouse rules: flags, the host’s text and what guests read
properties house-rules setchangesSet house rules
properties websitereadsDirect-booking website info of a property
properties website setchangesUpdate the words of the property website, one language per call
amenitiesreadsAmenity ids a listing’s facilityIds may hold
units listreadsBookable listings
units createchangesCreate a listing with its default price plan
units updatechangesUpdate a listing (prices: `units base-price`, `pricing set`)
units deletechangesDelete a listing (soft: the host can restore it; bookings stay)
units base-pricechangesSet the base nightly price (more than 25 % needs the host)
units photosreadsOne listing’s photos
units photos setchangesReplace one listing’s gallery with these photo URLs, in order
photos listreadsProperty photos, cover first
photos setchangesReplace the property gallery with these photo URLs, in order
media uploadchangesCopy a public HTTPS image (≤ 2 MB) into the media library; prints its id and URLs
properties brandingreadsGuest e-mail branding (logo, colour, signature, review link)
properties branding setchangesChange the guest e-mail branding (an empty value clears a field)
units restorechangesRestore a deleted listing
listings policiesreadsCancellation policy and instant book per platform, property wide
listings policies setchangesSet the platform policy for every listing of a property on one platform
properties balance-daysreadsHow many days before arrival the rest of a website deposit is due
properties balance-days setchangesSet how many days before arrival the rest of a website deposit is due (1 to 90)
propertiesreadsYour properties with their ids
properties ruleschangesBooking settings of a property: instant book, check-in times, house rules
properties policychangesCancellation policy of a property
properties content-statusreadsWhich platforms show your photos and texts as you wrote them
unitsreadsYour listings with their ids
units settingschangesStanding settings of a listing: weekend price, fees, length-of-stay discounts

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.

properties

hostemi properties list

Properties of the account. Reads only. Never asks.

hostemi properties list
OptionTypeDescription
--statusstringACTIVE, DRAFT, …
--include-archivedswitchArchived ones too

Mode: reads · API: GET /public/v1/properties. Every command also takes the global options.

hostemi properties get

One property with listings and price plans. Reads only. Never asks.

hostemi properties get <id>
ArgumentRequiredDescription
<id>yesProperty id

Mode: reads · API: GET /public/v1/properties/:id. Every command also takes the global options.

hostemi properties units

Listings of one property. Reads only. Never asks.

hostemi properties units <id>
ArgumentRequiredDescription
<id>yesProperty id

Mode: reads · API: GET /public/v1/properties/:id/units. Every command also takes the global options.

hostemi properties create

Create a property (listings come next with `units create`). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi properties create --name <string>
OptionTypeDescription
--namestringName Required.
--property-typestringWhat kind of place: one of the property types (see `hostemi properties create --help`) One of: apart_hotel, capsule_hotel, guest_house, hostel, hotel, inn, lodge, motel, resort, riad, ryokan, apartment, boat, chalet, country_house, farm_stay, holiday_home, homestay, villa, camping, holiday_park, tent.
--listing-modelstringHow listings are sold (ENTIRE_PLACE, ROOMS, …)
--descriptionstringDescription
--addressstringStreet address
--citystringCity
--regionstringRegion
--postal-codestringPostal code
--countrystringCountry code (HU)
--timezonestringIANA time zone
--currencystringHUF, EUR, …
--latnumberLatitude
--lngnumberLongitude
--check-in-fromstringHH:mm
--check-in-untilstringHH:mm
--check-out-untilstringHH:mm
--allows-childrenswitchChildren allowed (on|off)
--allows-infantsswitchInfants allowed
--allows-petsswitchPets allowed
--allows-smokingswitchSmoking allowed
--allows-eventsswitchEvents allowed
--quiet-fromstringQuiet hours from, HH:mm
--quiet-untilstringQuiet hours until, HH:mm
--max-guestsint|noneMax guests
--cancellation-policystringFLEXIBLE, MODERATE, STRICT, …
--emailstringContact e-mail
--phonestringContact phone
--websitestringWebsite
--important-informationstringShown to guests before they book
--min-stay-typestringarrival | through | both
--cut-off-timestringSame-day booking cut-off, HH:mm
--cut-off-daysintDays of notice
--tourist-taxamountTourist tax per guest night, major units
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/properties. Every command also takes the global options.

Examples
hostemi properties create --name "Lake House" --property-type HOUSE --city Tihany

hostemi properties update

Update a property (fields left out stay). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi properties update <id>
ArgumentRequiredDescription
<id>yesProperty id
OptionTypeDescription
--namestringName
--property-typestringWhat kind of place: one of the property types (see `hostemi properties create --help`) One of: apart_hotel, capsule_hotel, guest_house, hostel, hotel, inn, lodge, motel, resort, riad, ryokan, apartment, boat, chalet, country_house, farm_stay, holiday_home, homestay, villa, camping, holiday_park, tent.
--listing-modelstringHow listings are sold (ENTIRE_PLACE, ROOMS, …)
--descriptionstringDescription
--addressstringStreet address
--citystringCity
--regionstringRegion
--postal-codestringPostal code
--countrystringCountry code (HU)
--timezonestringIANA time zone
--currencystringHUF, EUR, …
--latnumberLatitude
--lngnumberLongitude
--check-in-fromstringHH:mm
--check-in-untilstringHH:mm
--check-out-untilstringHH:mm
--allows-childrenswitchChildren allowed (on|off)
--allows-infantsswitchInfants allowed
--allows-petsswitchPets allowed
--allows-smokingswitchSmoking allowed
--allows-eventsswitchEvents allowed
--quiet-fromstringQuiet hours from, HH:mm
--quiet-untilstringQuiet hours until, HH:mm
--max-guestsint|noneMax guests
--cancellation-policystringFLEXIBLE, MODERATE, STRICT, …
--emailstringContact e-mail
--phonestringContact phone
--websitestringWebsite
--important-informationstringShown to guests before they book
--min-stay-typestringarrival | through | both
--cut-off-timestringSame-day booking cut-off, HH:mm
--cut-off-daysintDays of notice
--tourist-taxamountTourist tax per guest night, major units
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

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

hostemi properties house-rules

House rules: flags, the host’s text and what guests read. Reads only. Never asks.

hostemi properties house-rules <id>
ArgumentRequiredDescription
<id>yesProperty id

Mode: reads · API: GET /public/v1/properties/:id/house-rules. Every command also takes the global options.

hostemi properties house-rules set

Set house rules. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi properties house-rules set <id>
ArgumentRequiredDescription
<id>yesProperty id
OptionTypeDescription
--allows-childrenswitchChildren allowed (on|off)
--allows-infantsswitchInfants allowed
--allows-petsswitchPets allowed
--allows-smokingswitchSmoking allowed
--allows-eventsswitchEvents allowed
--quiet-fromstringQuiet hours from, HH:mm
--quiet-untilstringQuiet hours until, HH:mm
--max-guestsint|noneMax guests
--textstringThe host’s own words ("" clears them)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/properties/:id/house-rules. Every command also takes the global options.

hostemi properties website

Direct-booking website info of a property. Reads only. Never asks.

hostemi properties website <id>
ArgumentRequiredDescription
<id>yesProperty id

Mode: reads · API: GET /public/v1/properties/:id/website. Every command also takes the global options.

hostemi properties website set

Update the words of the property website, one language per call. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi properties website set <id>
ArgumentRequiredDescription
<id>yesProperty id
OptionTypeDescription
--languagestringLanguage (default hu)
--titlestringTitle
--taglinestringTagline
--descriptionstringDescription
--house-rulesstringHouse rules text
--arrival-infostringArrival info
--contact-emailstringContact e-mail
--contact-phonestringContact phone
--seo-descriptionstringSearch description
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

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

hostemi properties branding

Guest e-mail branding (logo, colour, signature, review link). Reads only. Never asks.

hostemi properties branding <id>
ArgumentRequiredDescription
<id>yesProperty id

Mode: reads · API: GET /public/v1/properties/:id/branding. Every command also takes the global options.

hostemi properties branding set

Change the guest e-mail branding (an empty value clears a field). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi properties branding set <id>
ArgumentRequiredDescription
<id>yesProperty id
OptionTypeDescription
--logostringLogo image URL (https)
--colorstringBrand colour, #RGB or #RRGGBB
--signaturestringSignature under every guest e-mail
--review-urlstringWhere guests leave a review
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

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

hostemi properties balance-days

How many days before arrival the rest of a website deposit is due. Reads only. Never asks.

Preview: payments.balance
Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.
hostemi properties balance-days <id>
ArgumentRequiredDescription
<id>yesProperty id

Mode: reads · API: GET /public/v1/properties/:id/balance-due-days. Every command also takes the global options.

Examples
hostemi properties balance-days <propertyId>

hostemi properties balance-days set

Set how many days before arrival the rest of a website deposit is due (1 to 90). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

Preview: payments.balance
Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.
hostemi properties balance-days set <id>
ArgumentRequiredDescription
<id>yesProperty id
OptionTypeDescription
--daysintDays before arrival (default 14)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/properties/:id/balance-due-days. Every command also takes the global options.

Examples
hostemi properties balance-days set <propertyId> --days 21

hostemi properties

Your properties with their ids. Reads only. Never asks.

hostemi properties

Mode: reads · API: GET /public/v1/properties. Every command also takes the global options.

hostemi properties rules

Booking settings of a property: instant book, check-in times, house rules. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi properties rules get|set <property> [options]
ArgumentRequiredDescription
<action>yesget or set
<property>yesProperty name or id

Mode: changes · API: GET /public/v1/properties/:id/booking-settings, PUT /public/v1/properties/:id/booking-settings. Every command also takes the global options.

hostemi properties policy

Cancellation policy of a property. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi properties policy get|set <property> [kind]
ArgumentRequiredDescription
<action>yesget or set
<property>yesProperty name or id
<kind>noPolicy kind (set)

Mode: changes · API: GET /public/v1/properties/:id/cancellation-policy, PUT /public/v1/properties/:id/cancellation-policy. Every command also takes the global options.

hostemi properties content-status

Which platforms show your photos and texts as you wrote them. Reads only. Never asks.

hostemi properties content-status <property>
ArgumentRequiredDescription
<property>yesProperty name or id

Mode: reads · API: GET /public/v1/properties/:id/content-status. Every command also takes the global options.

units

hostemi units list

Bookable listings. Reads only. Never asks.

hostemi units list
OptionTypeDescription
--propertystringProperty id

Mode: reads · API: GET /public/v1/units. Every command also takes the global options.

Example
hostemi units list
Output (recorded in a test workspace, exit 0)
units:
  id                         name                kind
  cmwhux6y60026somfhixjmcm8  Lake house          APARTMENT

hostemi units create

Create a listing with its default price plan. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi units create <id> --name <string>
ArgumentRequiredDescription
<id>yesProperty id
OptionTypeDescription
--namestringName Required.
--descriptionstringDescription
--kindstringListing kind
--roomsintIdentical rooms of this type
--adultsintMax adults
--childrenintMax children
--infantsintMax infants
--default-occupancyintGuests the base price is for
--sizenumberSize, m²
--positionintSort position
--beds-doubleintDouble beds
--beds-singleintSingle beds
--beds-extraintExtra beds
--amenitieslistAmenity ids from `amenities`
--base-priceamountBase nightly price, major units
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/properties/:id/units. Every command also takes the global options.

Examples
hostemi units create prop_1 --name "Studio" --adults 2 --base-price 35000

hostemi units update

Update a listing (prices: `units base-price`, `pricing set`). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi units update <id>
ArgumentRequiredDescription
<id>yesListing id
OptionTypeDescription
--namestringName
--descriptionstringDescription
--kindstringListing kind
--roomsintIdentical rooms of this type
--adultsintMax adults
--childrenintMax children
--infantsintMax infants
--default-occupancyintGuests the base price is for
--sizenumberSize, m²
--positionintSort position
--beds-doubleintDouble beds
--beds-singleintSingle beds
--beds-extraintExtra beds
--amenitieslistAmenity ids from `amenities`
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

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

hostemi units delete

Delete a listing (soft: the host can restore it; bookings stay). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi units delete <id>
ArgumentRequiredDescription
<id>yesListing id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: DELETE /public/v1/units/:id. Every command also takes the global options.

hostemi units base-price

Set the base nightly price (more than 25 % needs the host). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi units base-price <id> [price]
ArgumentRequiredDescription
<id>yesListing id
<price>noPrice, major units
OptionTypeDescription
--minorintPrice in minor units instead
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/units/:id/base-price. Every command also takes the global options.

hostemi units photos

One listing’s photos. Reads only. Never asks.

hostemi units photos <id> <unitId>
ArgumentRequiredDescription
<id>yesProperty id
<unitId>yesListing id

Mode: reads · API: GET /public/v1/properties/:id/units/:unitId/photos. Every command also takes the global options.

hostemi units photos set

Replace one listing’s gallery with these photo URLs, in order. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi units photos set <id> <unitId> [urls…]
ArgumentRequiredDescription
<id>yesProperty id
<unitId>yesListing id
<urls>noPhoto URLs (from `media upload`)
OptionTypeDescription
--coverintWhich one is the cover, 1-based (default 1)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/properties/:id/units/:unitId/photos. Every command also takes the global options.

hostemi units restore

Restore a deleted listing. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi units restore <id>
ArgumentRequiredDescription
<id>yesListing id
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/units/:id/restore. Every command also takes the global options.

hostemi units

Your listings with their ids. Reads only. Never asks.

hostemi units [--property <id>]
OptionTypeDescription
--propertystringProperty id

Mode: reads · API: GET /public/v1/units. Every command also takes the global options.

hostemi units settings

Standing settings of a listing: weekend price, fees, length-of-stay discounts. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi units settings get|set <listing> [options]
ArgumentRequiredDescription
<action>yesget or set
<listing>yesListing name or id

Mode: changes · API: GET /public/v1/units/:id/listing-settings, PUT /public/v1/units/:id/listing-settings. Every command also takes the global options.

listings

hostemi listings platform-settings

A listing's settings only this platform has (Airbnb: taxes, expectations, check-out tasks, welcome message…). Reads only. Never asks.

Preview: platforms.airbnbSettings
Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.
hostemi listings platform-settings <id> <unitId>
ArgumentRequiredDescription
<id>yesConnected platform id
<unitId>yesListing id

Mode: reads · API: GET /public/v1/connections/:id/units/:unitId/platform-settings. Every command also takes the global options.

hostemi listings platform-settings set

Change a listing's platform-only settings (a patch; taxes, fees and long-stay cancellation ask the host). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

Preview: platforms.airbnbSettings
Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.
hostemi listings platform-settings set <id> <unitId>
ArgumentRequiredDescription
<id>yesConnected platform id
<unitId>yesListing id
OptionTypeDescription
--settingsjsonThe patch, e.g. {"expectations":[{"type":"requires_stairs"}]}
--welcome-messagestringInstant Book welcome message (none = stop managing it)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/connections/:id/units/:unitId/platform-settings. Every command also takes the global options.

Examples
hostemi listings platform-settings set conn_1 unit_1 --welcome-message "Hi, welcome!"

hostemi listings opportunities

The platform's opportunities for a listing (Airbnb), read now. Reads only. Never asks.

Preview: platforms.airbnbSettings
Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.
hostemi listings opportunities <id> <unitId>
ArgumentRequiredDescription
<id>yesConnected platform id
<unitId>yesListing id

Mode: reads · API: GET /public/v1/connections/:id/units/:unitId/opportunities. Every command also takes the global options.

hostemi listings opportunities apply

Apply an opportunity to a listing (the host approves). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

Preview: platforms.airbnbSettings
Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.
hostemi listings opportunities apply <id> <unitId> <opportunityId>
ArgumentRequiredDescription
<id>yesConnected platform id
<unitId>yesListing id
<opportunityId>yesFrom `listings opportunities`
OptionTypeDescription
--inputsjsonValues for its inputs, by key
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/connections/:id/units/:unitId/opportunities/:opportunityId/apply. Every command also takes the global options.

hostemi listings list

Every listing of a connection as a platform listing. Reads only. Never asks.

hostemi listings list <id>
ArgumentRequiredDescription
<id>yesConnected platform id

Mode: reads · API: GET /public/v1/connections/:id/listings. Every command also takes the global options.

hostemi listings get

One listing on one platform: policy, instant book, publish state, promotions. Reads only. Never asks.

hostemi listings get <id> <unitId>
ArgumentRequiredDescription
<id>yesConnected platform id
<unitId>yesListing id

Mode: reads · API: GET /public/v1/connections/:id/units/:unitId/listing. Every command also takes the global options.

hostemi listings policy

The listing’s own cancellation policy and instant-book mode on a platform. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi listings policy <id> <unitId>
ArgumentRequiredDescription
<id>yesConnected platform id
<unitId>yesListing id
OptionTypeDescription
--policy-codestringA code from the listing’s policy.options (none = follow the property)
--instant-book-modestringA mode from instantBook.modes (none = follow the property)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/connections/:id/units/:unitId/policy. Every command also takes the global options.

hostemi listings unpublish-reasons

The platform’s unpublish reasons. Reads only. Never asks.

hostemi listings unpublish-reasons <id> <unitId>
ArgumentRequiredDescription
<id>yesConnected platform id
<unitId>yesListing id
OptionTypeDescription
--localestringLanguage of the labels

Mode: reads · API: GET /public/v1/connections/:id/units/:unitId/unpublish-reasons. Every command also takes the global options.

hostemi listings policies

Cancellation policy and instant book per platform, property wide. Reads only. Never asks.

hostemi listings policies <id>
ArgumentRequiredDescription
<id>yesProperty id

Mode: reads · API: GET /public/v1/properties/:id/channel-policies. Every command also takes the global options.

hostemi listings policies set

Set the platform policy for every listing of a property on one platform. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi listings policies set <id> --connection <string>
ArgumentRequiredDescription
<id>yesProperty id
OptionTypeDescription
--connectionstringConnected platform id Required.
--unitstringOnly this listing
--policy-codestringPolicy code from `listings policies` (none = platform default)
--instant-book-modestringInstant-book mode (none = platform default)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/properties/:id/channel-policies. Every command also takes the global options.

photos

hostemi photos list

Property photos, cover first. Reads only. Never asks.

hostemi photos list <id>
ArgumentRequiredDescription
<id>yesProperty id

Mode: reads · API: GET /public/v1/properties/:id/photos. Every command also takes the global options.

hostemi photos set

Replace the property gallery with these photo URLs, in order. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi photos set <id> [urls…]
ArgumentRequiredDescription
<id>yesProperty id
<urls>noPhoto URLs (from `media upload`)
OptionTypeDescription
--coverintWhich one is the cover, 1-based (default 1)
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

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

media

hostemi media upload

Copy a public HTTPS image (≤ 2 MB) into the media library; prints its id and URLs. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

hostemi media upload <url>
ArgumentRequiredDescription
<url>yesImage URL
OptionTypeDescription
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: POST /public/v1/media/from-url. Every command also takes the global options.

amenities

hostemi amenities

Amenity ids a listing’s facilityIds may hold. Reads only. Never asks.

hostemi amenities

Mode: reads · API: GET /public/v1/amenities. Every command also takes the global options.

Something missing from this page? Write to [email protected], or use the form on the Help page.