---
title: "Commands: properties and listings | Hostemi"
description: "properties, units, listings, photos, media and amenities. Step-by-step help from the Hostemi docs for vacation rental hosts, cli command reference section."
canonical: https://hostemi.com/docs/cli/reference/listings
source: https://hostemi.com/docs/cli/reference/listings.md
---

# Commands: properties and listings

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

#### On this page

1. [Overview](#overview)
2. [properties](#properties)
3. [units](#units)
4. [listings](#listings)
5. [photos](#photos)
6. [media](#media)
7. [amenities](#amenities)

## Overview

| Command | Mode | What it does |
| --- | --- | --- |
| [`listings platform-settings`](#listings-platform-settings) | reads | A listing's settings only this platform has (Airbnb: taxes, expectations, check-out tasks, welcome message…) |
| [`listings platform-settings set`](#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`](#listings-opportunities) | reads | The platform's opportunities for a listing (Airbnb), read now |
| [`listings opportunities apply`](#listings-opportunities-apply) | changes | Apply an opportunity to a listing (the host approves) |
| [`listings list`](#listings-list) | reads | Every listing of a connection as a platform listing |
| [`listings get`](#listings-get) | reads | One listing on one platform: policy, instant book, publish state, promotions |
| [`listings policy`](#listings-policy) | changes | The listing’s own cancellation policy and instant-book mode on a platform |
| [`listings unpublish-reasons`](#listings-unpublish-reasons) | reads | The platform’s unpublish reasons |
| [`properties list`](#properties-list) | reads | Properties of the account |
| [`properties get`](#properties-get) | reads | One property with listings and price plans |
| [`properties units`](#properties-units) | reads | Listings of one property |
| [`properties create`](#properties-create) | changes | Create a property (listings come next with \`units create\`) |
| [`properties update`](#properties-update) | changes | Update a property (fields left out stay) |
| [`properties house-rules`](#properties-house-rules) | reads | House rules: flags, the host’s text and what guests read |
| [`properties house-rules set`](#properties-house-rules-set) | changes | Set house rules |
| [`properties website`](#properties-website) | reads | Direct-booking website info of a property |
| [`properties website set`](#properties-website-set) | changes | Update the words of the property website, one language per call |
| [`amenities`](#amenities) | reads | Amenity ids a listing’s facilityIds may hold |
| [`units list`](#units-list) | reads | Bookable listings |
| [`units create`](#units-create) | changes | Create a listing with its default price plan |
| [`units update`](#units-update) | changes | Update a listing (prices: \`units base-price\`, \`pricing set\`) |
| [`units delete`](#units-delete) | changes | Delete a listing (soft: the host can restore it; bookings stay) |
| [`units base-price`](#units-base-price) | changes | Set the base nightly price (more than 25 % needs the host) |
| [`units photos`](#units-photos) | reads | One listing’s photos |
| [`units photos set`](#units-photos-set) | changes | Replace one listing’s gallery with these photo URLs, in order |
| [`photos list`](#photos-list) | reads | Property photos, cover first |
| [`photos set`](#photos-set) | changes | Replace the property gallery with these photo URLs, in order |
| [`media upload`](#media-upload) | changes | Copy a public HTTPS image (≤ 2 MB) into the media library; prints its id and URLs |
| [`properties branding`](#properties-branding) | reads | Guest e-mail branding (logo, colour, signature, review link) |
| [`properties branding set`](#properties-branding-set) | changes | Change the guest e-mail branding (an empty value clears a field) |
| [`units restore`](#units-restore) | changes | Restore a deleted listing |
| [`listings policies`](#listings-policies) | reads | Cancellation policy and instant book per platform, property wide |
| [`listings policies set`](#listings-policies-set) | changes | Set the platform policy for every listing of a property on one platform |
| [`properties balance-days`](#properties-balance-days) | reads | How many days before arrival the rest of a website deposit is due |
| [`properties balance-days set`](#properties-balance-days-set) | changes | Set how many days before arrival the rest of a website deposit is due (1 to 90) |
| [`properties`](#properties) | reads | Your properties with their ids |
| [`properties rules`](#properties-rules) | changes | Booking settings of a property: instant book, check-in times, house rules |
| [`properties policy`](#properties-policy) | changes | Cancellation policy of a property |
| [`properties content-status`](#properties-content-status) | reads | Which platforms show your photos and texts as you wrote them |
| [`units`](#units) | reads | Your listings with their ids |
| [`units settings`](#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](https://hostemi.com/docs/cli/approvals).

## properties

### hostemi properties list

Properties of the account. Reads only. Never asks.

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi properties get

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi properties units

Listings of one property. Reads only. Never asks.

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

Examples

```bash
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.

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi properties house-rules

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi properties house-rules set

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi properties website

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi properties branding

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

Examples

```bash
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.

```bash
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](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi properties balance-days set <propertyId> --days 21
```

### hostemi properties

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

```bash
hostemi properties
```

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

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi properties policy

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi properties content-status

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

```bash
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](https://hostemi.com/docs/cli/usage).

## units

### hostemi units list

Bookable listings. Reads only. Never asks.

```bash
hostemi units list
```

| Option | Type | Description |
| --- | --- | --- |
| `--property` | string | Property id |

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

Example

```bash
hostemi units list
```

Output (recorded in a test workspace, exit 0)

```text
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.

```bash
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](https://hostemi.com/docs/cli/usage).

Examples

```bash
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.

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi units photos

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi units restore

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi units

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

Examples

```bash
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.

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi listings list

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi listings get

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi listings unpublish-reasons

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

```bash
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](https://hostemi.com/docs/cli/usage).

### hostemi listings policies

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

## photos

### hostemi photos list

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

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

```bash
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](https://hostemi.com/docs/cli/usage).

## amenities

### hostemi amenities

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

```bash
hostemi amenities
```

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

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.
