Commands: properties and listings
properties, units, listings, photos, media and amenities.
Overview
| Command | Mode | What it does |
|---|---|---|
listings platform-settings | reads | A listing's settings only this platform has (Airbnb: taxes, expectations, check-out tasks, welcome message…) |
listings platform-settings set | changes | Change a listing's platform-only settings (a patch; taxes, fees and long-stay cancellation ask the host) |
listings opportunities | reads | The platform's opportunities for a listing (Airbnb), read now |
listings opportunities apply | changes | Apply an opportunity to a listing (the host approves) |
listings list | reads | Every listing of a connection as a platform listing |
listings get | reads | One listing on one platform: policy, instant book, publish state, promotions |
listings policy | changes | The listing’s own cancellation policy and instant-book mode on a platform |
listings unpublish-reasons | reads | The platform’s unpublish reasons |
properties list | reads | Properties of the account |
properties get | reads | One property with listings and price plans |
properties units | reads | Listings of one property |
properties create | changes | Create a property (listings come next with `units create`) |
properties update | changes | Update a property (fields left out stay) |
properties house-rules | reads | House rules: flags, the host’s text and what guests read |
properties house-rules set | changes | Set house rules |
properties website | reads | Direct-booking website info of a property |
properties website set | changes | Update the words of the property website, one language per call |
amenities | reads | Amenity ids a listing’s facilityIds may hold |
units list | reads | Bookable listings |
units create | changes | Create a listing with its default price plan |
units update | changes | Update a listing (prices: `units base-price`, `pricing set`) |
units delete | changes | Delete a listing (soft: the host can restore it; bookings stay) |
units base-price | changes | Set the base nightly price (more than 25 % needs the host) |
units photos | reads | One listing’s photos |
units photos set | changes | Replace one listing’s gallery with these photo URLs, in order |
photos list | reads | Property photos, cover first |
photos set | changes | Replace the property gallery with these photo URLs, in order |
media upload | changes | Copy a public HTTPS image (≤ 2 MB) into the media library; prints its id and URLs |
properties branding | reads | Guest e-mail branding (logo, colour, signature, review link) |
properties branding set | changes | Change the guest e-mail branding (an empty value clears a field) |
units restore | changes | Restore a deleted listing |
listings policies | reads | Cancellation policy and instant book per platform, property wide |
listings policies set | changes | Set the platform policy for every listing of a property on one platform |
properties balance-days | reads | How many days before arrival the rest of a website deposit is due |
properties balance-days set | changes | Set how many days before arrival the rest of a website deposit is due (1 to 90) |
properties | reads | Your properties with their ids |
properties rules | changes | Booking settings of a property: instant book, check-in times, house rules |
properties policy | changes | Cancellation policy of a property |
properties content-status | reads | Which platforms show your photos and texts as you wrote them |
units | reads | Your listings with their ids |
units settings | changes | Standing 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| Option | Type | Description |
|---|---|---|
--status | string | ACTIVE, DRAFT, … |
--include-archived | switch | Archived 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property 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>| Option | Type | Description |
|---|---|---|
--name | string | Name Required. |
--property-type | string | What 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-model | string | How listings are sold (ENTIRE_PLACE, ROOMS, …) |
--description | string | Description |
--address | string | Street address |
--city | string | City |
--region | string | Region |
--postal-code | string | Postal code |
--country | string | Country code (HU) |
--timezone | string | IANA time zone |
--currency | string | HUF, EUR, … |
--lat | number | Latitude |
--lng | number | Longitude |
--check-in-from | string | HH:mm |
--check-in-until | string | HH:mm |
--check-out-until | string | HH:mm |
--allows-children | switch | Children allowed (on|off) |
--allows-infants | switch | Infants allowed |
--allows-pets | switch | Pets allowed |
--allows-smoking | switch | Smoking allowed |
--allows-events | switch | Events allowed |
--quiet-from | string | Quiet hours from, HH:mm |
--quiet-until | string | Quiet hours until, HH:mm |
--max-guests | int|none | Max guests |
--cancellation-policy | string | FLEXIBLE, MODERATE, STRICT, … |
--email | string | Contact e-mail |
--phone | string | Contact phone |
--website | string | Website |
--important-information | string | Shown to guests before they book |
--min-stay-type | string | arrival | through | both |
--cut-off-time | string | Same-day booking cut-off, HH:mm |
--cut-off-days | int | Days of notice |
--tourist-tax | amount | Tourist tax per guest night, major units |
--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/properties. Every command also takes the global options.
hostemi properties create --name "Lake House" --property-type HOUSE --city Tihanyhostemi 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
| Option | Type | Description |
|---|---|---|
--name | string | Name |
--property-type | string | What 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-model | string | How listings are sold (ENTIRE_PLACE, ROOMS, …) |
--description | string | Description |
--address | string | Street address |
--city | string | City |
--region | string | Region |
--postal-code | string | Postal code |
--country | string | Country code (HU) |
--timezone | string | IANA time zone |
--currency | string | HUF, EUR, … |
--lat | number | Latitude |
--lng | number | Longitude |
--check-in-from | string | HH:mm |
--check-in-until | string | HH:mm |
--check-out-until | string | HH:mm |
--allows-children | switch | Children allowed (on|off) |
--allows-infants | switch | Infants allowed |
--allows-pets | switch | Pets allowed |
--allows-smoking | switch | Smoking allowed |
--allows-events | switch | Events allowed |
--quiet-from | string | Quiet hours from, HH:mm |
--quiet-until | string | Quiet hours until, HH:mm |
--max-guests | int|none | Max guests |
--cancellation-policy | string | FLEXIBLE, MODERATE, STRICT, … |
--email | string | Contact e-mail |
--phone | string | Contact phone |
--website | string | Website |
--important-information | string | Shown to guests before they book |
--min-stay-type | string | arrival | through | both |
--cut-off-time | string | Same-day booking cut-off, HH:mm |
--cut-off-days | int | Days of notice |
--tourist-tax | amount | Tourist tax per guest night, major units |
--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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
| Option | Type | Description |
|---|---|---|
--allows-children | switch | Children allowed (on|off) |
--allows-infants | switch | Infants allowed |
--allows-pets | switch | Pets allowed |
--allows-smoking | switch | Smoking allowed |
--allows-events | switch | Events allowed |
--quiet-from | string | Quiet hours from, HH:mm |
--quiet-until | string | Quiet hours until, HH:mm |
--max-guests | int|none | Max guests |
--text | string | The host’s own words ("" clears them) |
--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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
| Option | Type | Description |
|---|---|---|
--language | string | Language (default hu) |
--title | string | Title |
--tagline | string | Tagline |
--description | string | Description |
--house-rules | string | House rules text |
--arrival-info | string | Arrival info |
--contact-email | string | Contact e-mail |
--contact-phone | string | Contact phone |
--seo-description | string | Search 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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
| Option | Type | Description |
|---|---|---|
--logo | string | Logo image URL (https) |
--color | string | Brand colour, #RGB or #RRGGBB |
--signature | string | Signature under every guest e-mail |
--review-url | string | Where guests leave a review |
--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/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.
hostemi properties balance-days <id>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
Mode: reads · API: GET /public/v1/properties/:id/balance-due-days. Every command also takes the global options.
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.
hostemi properties balance-days set <id>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
| Option | Type | Description |
|---|---|---|
--days | int | Days before arrival (default 14) |
--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/properties/:id/balance-due-days. Every command also takes the global options.
hostemi properties balance-days set <propertyId> --days 21hostemi properties
Your properties with their ids. Reads only. Never asks.
hostemi propertiesMode: 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]| Argument | Required | Description |
|---|---|---|
<action> | yes | get or set |
<property> | yes | Property 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]| Argument | Required | Description |
|---|---|---|
<action> | yes | get or set |
<property> | yes | Property name or id |
<kind> | no | Policy 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>| Argument | Required | Description |
|---|---|---|
<property> | yes | Property 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| Option | Type | Description |
|---|---|---|
--property | string | Property id |
Mode: reads · API: GET /public/v1/units. Every command also takes the global options.
hostemi units listunits:
id name kind
cmwhux6y60026somfhixjmcm8 Lake house APARTMENThostemi 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
| Option | Type | Description |
|---|---|---|
--name | string | Name Required. |
--description | string | Description |
--kind | string | Listing kind |
--rooms | int | Identical rooms of this type |
--adults | int | Max adults |
--children | int | Max children |
--infants | int | Max infants |
--default-occupancy | int | Guests the base price is for |
--size | number | Size, m² |
--position | int | Sort position |
--beds-double | int | Double beds |
--beds-single | int | Single beds |
--beds-extra | int | Extra beds |
--amenities | list | Amenity ids from `amenities` |
--base-price | amount | Base nightly price, major units |
--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/properties/:id/units. Every command also takes the global options.
hostemi units create prop_1 --name "Studio" --adults 2 --base-price 35000hostemi 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Listing id |
| Option | Type | Description |
|---|---|---|
--name | string | Name |
--description | string | Description |
--kind | string | Listing kind |
--rooms | int | Identical rooms of this type |
--adults | int | Max adults |
--children | int | Max children |
--infants | int | Max infants |
--default-occupancy | int | Guests the base price is for |
--size | number | Size, m² |
--position | int | Sort position |
--beds-double | int | Double beds |
--beds-single | int | Single beds |
--beds-extra | int | Extra beds |
--amenities | list | Amenity ids from `amenities` |
--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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Listing id |
| 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: 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]| Argument | Required | Description |
|---|---|---|
<id> | yes | Listing id |
<price> | no | Price, major units |
| Option | Type | Description |
|---|---|---|
--minor | int | Price in minor units instead |
--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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
<unitId> | yes | Listing 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…]| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
<unitId> | yes | Listing id |
<urls> | no | Photo URLs (from `media upload`) |
| Option | Type | Description |
|---|---|---|
--cover | int | Which one is the cover, 1-based (default 1) |
--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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Listing id |
| 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/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>]| Option | Type | Description |
|---|---|---|
--property | string | Property 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]| Argument | Required | Description |
|---|---|---|
<action> | yes | get or set |
<listing> | yes | Listing 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.
hostemi listings platform-settings <id> <unitId>| Argument | Required | Description |
|---|---|---|
<id> | yes | Connected platform id |
<unitId> | yes | Listing 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.
hostemi listings platform-settings set <id> <unitId>| Argument | Required | Description |
|---|---|---|
<id> | yes | Connected platform id |
<unitId> | yes | Listing id |
| Option | Type | Description |
|---|---|---|
--settings | json | The patch, e.g. {"expectations":[{"type":"requires_stairs"}]} |
--welcome-message | string | Instant Book welcome message (none = stop managing it) |
--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/connections/:id/units/:unitId/platform-settings. Every command also takes the global options.
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.
hostemi listings opportunities <id> <unitId>| Argument | Required | Description |
|---|---|---|
<id> | yes | Connected platform id |
<unitId> | yes | Listing 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.
hostemi listings opportunities apply <id> <unitId> <opportunityId>| Argument | Required | Description |
|---|---|---|
<id> | yes | Connected platform id |
<unitId> | yes | Listing id |
<opportunityId> | yes | From `listings opportunities` |
| Option | Type | Description |
|---|---|---|
--inputs | json | Values for its inputs, by key |
--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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Connected 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Connected platform id |
<unitId> | yes | Listing 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Connected platform id |
<unitId> | yes | Listing id |
| Option | Type | Description |
|---|---|---|
--policy-code | string | A code from the listing’s policy.options (none = follow the property) |
--instant-book-mode | string | A mode from instantBook.modes (none = follow the property) |
--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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Connected platform id |
<unitId> | yes | Listing id |
| Option | Type | Description |
|---|---|---|
--locale | string | Language 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property 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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
| Option | Type | Description |
|---|---|---|
--connection | string | Connected platform id Required. |
--unit | string | Only this listing |
--policy-code | string | Policy code from `listings policies` (none = platform default) |
--instant-book-mode | string | Instant-book mode (none = platform default) |
--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/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>| Argument | Required | Description |
|---|---|---|
<id> | yes | Property 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…]| Argument | Required | Description |
|---|---|---|
<id> | yes | Property id |
<urls> | no | Photo URLs (from `media upload`) |
| Option | Type | Description |
|---|---|---|
--cover | int | Which one is the cover, 1-based (default 1) |
--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/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>| Argument | Required | Description |
|---|---|---|
<url> | yes | Image URL |
| 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/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 amenitiesMode: reads · API: GET /public/v1/amenities. Every command also takes the global options.