---
title: "Commands: platforms | Hostemi"
description: "platforms and channels: state, sync, settings, mapping, import and go-live. Step-by-step help from the Hostemi docs for vacation rental hosts."
canonical: https://hostemi.com/docs/cli/reference/platforms
source: https://hostemi.com/docs/cli/reference/platforms.md
---

# Commands: platforms

platforms and channels: state, sync, settings, mapping, import and go-live.

#### On this page

1. [Overview](#overview)
2. [platforms](#platforms)
3. [channels](#channels)

## Overview

| Command | Mode | What it does |
| --- | --- | --- |
| [`channels settings`](#channels-settings) | reads | Standing settings of one listing on one platform |
| [`channels settings set`](#channels-settings-set) | preview, then apply | Preview a platform settings change (markup, stay rules, paused) |
| [`channels list`](#channels-list) | reads | Connected platforms with status, last sync and last error |
| [`channels setup`](#channels-setup) | reads | Go-live state of a platform |
| [`channels test`](#channels-test) | reads | Ask the platform whether it still works |
| [`channels resync`](#channels-resync) | changes | Re-push prices and availability to a platform |
| [`channels import`](#channels-import) | changes | Import rooms, prices and photos from a platform |
| [`channels recover`](#channels-recover) | changes | Recover platform bookings after an outage |
| [`channels connect`](#channels-connect) | host approves | Get the page where the host connects a platform (creates nothing) |
| [`channels pause`](#channels-pause) | host approves | Ask the host to pause a platform |
| [`channels activate`](#channels-activate) | host approves | Ask the host to activate a platform |
| [`channels go-live`](#channels-go-live) | host approves | Ask the host to take a platform live |
| [`channels map`](#channels-map) | host approves | Propose a room and rate mapping (the host confirms it) |
| [`channels disconnect`](#channels-disconnect) | host approves | Disconnect a platform: human only, prints the page where the host does it |
| [`channels compare`](#channels-compare) | reads | One connection side by side with Default and Website |
| [`channels publish`](#channels-publish) | host approves | Ask the host to publish a listing on a platform |
| [`channels unpublish`](#channels-unpublish) | host approves | Ask the host to unpublish a listing |
| [`channels promotions`](#channels-promotions) | reads | Promotions of a listing |
| [`channels promotions set`](#channels-promotions-set) | changes | Switch promotions on or off |
| [`channels extranet-deals set`](#channels-extranet-deals-set) | changes | Deals you run in a platform's own extranet (Genius, Mobile rate…): advice only, nothing is sent |
| [`channels config`](#channels-config) | reads | A platform's own settings for all its listings (minimum stay counts, Szállás.hu sync mode), real time |
| [`channels config set`](#channels-config-set) | changes | Change a platform's own settings (Rates and Availability asks the host) |
| [`channels realtime-check`](#channels-realtime-check) | reads | Ask the platform again whether it sells from Hostemi's availability (Szállás.hu real-time allocation) |
| [`channels hold-back`](#channels-hold-back) | reads | Rooms held back from a platform, per listing with several rooms |
| [`channels hold-back preview`](#channels-hold-back-preview) | reads | What holding rooms back would do, before saving |
| [`channels hold-back set`](#channels-hold-back-set) | changes | Hold rooms of a listing back from a platform (0 = none; the host approves holding back) |
| [`channels platform-wide`](#channels-platform-wide) | reads | Which amount a booking carries, and how no-shows are reported |
| [`channels no-show-policy`](#channels-no-show-policy) | changes | Waive the no-show fee when a no-show is reported (Booking.com; the host approves) |
| [`channels get`](#channels-get) | reads | One connection with its mappings and recent sync events |
| [`channels held`](#channels-held) | reads | Bookings a platform sent that wait for a listing |
| [`channels held link`](#channels-held-link) | changes | Put a waiting booking on one of your listings |
| [`channels held retry`](#channels-held-retry) | changes | Read the waiting bookings from the platform again |
| [`channels available`](#channels-available) | reads | Platforms that can be connected, and how |
| [`channels how-to-connect`](#channels-how-to-connect) | reads | The steps to connect one platform (creates nothing) |
| [`channels import-start`](#channels-import-start) | changes | Start bringing your listings in from a platform |
| [`channels import-status`](#channels-import-status) | reads | The listings an import found |
| [`channels import-apply`](#channels-import-apply) | changes | Add the listings you pick from an import (connected, not live) |
| [`channels status`](#channels-status) | reads | Connected platforms: state, last sync, last error |
| [`platforms`](#platforms) | = channels status | Connected platforms: state, last sync, last error |
| [`platforms list`](#platforms-list) | = channels status | Connected platforms: state, last sync, last error |
| [`platforms connect`](#platforms-connect) | = channels connect | Get the page where the host connects a platform (creates nothing) |
| [`platforms sync`](#platforms-sync) | = channels resync | Re-push prices and availability to a platform |
| [`platforms pause`](#platforms-pause) | = channels pause | Ask the host to pause a platform |
| [`platforms activate`](#platforms-activate) | = channels activate | Ask the host to activate a platform |
| [`platforms publish`](#platforms-publish) | = channels publish | Ask the host to publish a listing on a platform |
| [`platforms unpublish`](#platforms-unpublish) | = channels unpublish | Ask the host to unpublish a listing |
| [`platforms settings`](#platforms-settings) | = channels settings | Standing settings of one listing on one platform |
| [`platforms compare`](#platforms-compare) | = channels compare | One connection side by side with Default and Website |

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

## platforms

### hostemi platforms

Connected platforms: state, last sync, last error. A short name for [`hostemi channels status`](https://hostemi.com/docs/cli/reference/platforms#channels-status): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms [--property <id>]
```

### hostemi platforms list

Connected platforms: state, last sync, last error. A short name for [`hostemi channels status`](https://hostemi.com/docs/cli/reference/platforms#channels-status): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms list [--property <id>]
```

### hostemi platforms connect

Get the page where the host connects a platform (creates nothing). A short name for [`hostemi channels connect`](https://hostemi.com/docs/cli/reference/platforms#channels-connect): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms connect
```

### hostemi platforms sync

Re-push prices and availability to a platform. A short name for [`hostemi channels resync`](https://hostemi.com/docs/cli/reference/platforms#channels-resync): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms sync <id>
```

### hostemi platforms pause

Ask the host to pause a platform. A short name for [`hostemi channels pause`](https://hostemi.com/docs/cli/reference/platforms#channels-pause): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms pause <id>
```

### hostemi platforms activate

Ask the host to activate a platform. A short name for [`hostemi channels activate`](https://hostemi.com/docs/cli/reference/platforms#channels-activate): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms activate <id>
```

### hostemi platforms publish

Ask the host to publish a listing on a platform. A short name for [`hostemi channels publish`](https://hostemi.com/docs/cli/reference/platforms#channels-publish): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms publish <id> <unitId>
```

### hostemi platforms unpublish

Ask the host to unpublish a listing. A short name for [`hostemi channels unpublish`](https://hostemi.com/docs/cli/reference/platforms#channels-unpublish): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms unpublish <id> <unitId>
```

### hostemi platforms settings

Standing settings of one listing on one platform. A short name for [`hostemi channels settings`](https://hostemi.com/docs/cli/reference/platforms#channels-settings): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms settings <id> <connectionId>
```

### hostemi platforms compare

One connection side by side with Default and Website. A short name for [`hostemi channels compare`](https://hostemi.com/docs/cli/reference/platforms#channels-compare): it runs that command, with the arguments shown here and that command's options.

```bash
hostemi platforms compare <id> --unit <string>
```

## channels

### hostemi channels settings

Standing settings of one listing on one platform. Reads only. Never asks.

```bash
hostemi channels settings <id> <connectionId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Listing id |
| `<connectionId>` | yes | Connected platform id |

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

### hostemi channels settings set

Preview a platform settings change (markup, stay rules, paused). Shows a preview first; applies with --yes or after you confirm. --dry-run stops at the preview.

```bash
hostemi channels settings set <id> <connectionId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Listing id |
| `<connectionId>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--adjust-pct` | number | Markup in percent (15 = +15 %) |
| `--adjust-bps` | int | Markup in basis points (1500 = +15 %) |
| `--adjust` | amount | Markup as an amount, major units |
| `--min-nights` | int\|none | Minimum nights (none = listing default) |
| `--max-nights` | int\|none | Maximum nights |
| `--advance-notice-hours` | int\|none | Advance notice, hours |
| `--max-advance-days` | int\|none | How far ahead guests may book, days |
| `--preparation-nights` | int\|none | Nights blocked between stays |
| `--paused` | switch | on \| off |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: preview, then apply · API: PUT /public/v1/units/:id/channels/:connectionId/settings. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels list

Connected platforms with status, last sync and last error. Reads only. Never asks.

```bash
hostemi channels list
```

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

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

### hostemi channels setup

Go-live state of a platform. Reads only. Never asks.

```bash
hostemi channels setup <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

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

### hostemi channels test

Ask the platform whether it still works. Reads only. Never asks.

```bash
hostemi channels test <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

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

### hostemi channels resync

Re-push prices and availability to a platform. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels resync <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--scope` | string | connection (default) \| property (every platform of the property) |
| `--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/resync. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels import

Import rooms, prices and photos from a platform. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels import <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform 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/connections/:id/import. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels recover

Recover platform bookings after an outage. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels recover --since <string>
```

| Option | Type | Description |
| --- | --- | --- |
| `--since` | string | ISO 8601, at most 90 days ago Required. |
| `--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/recover. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels connect

Get the page where the host connects a platform (creates nothing). Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi channels connect
```

| Option | Type | Description |
| --- | --- | --- |
| `--property` | string | Property id |
| `--channel` | string | Platform, e.g. AIRBNB, BOOKING\_COM, SZALLAS\_HU |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: POST /public/v1/connections/connect-start. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels pause

Ask the host to pause a platform. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi channels pause <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: POST /public/v1/connections/:id/pause. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels activate

Ask the host to activate a platform. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi channels activate <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: POST /public/v1/connections/:id/activate. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels go-live

Ask the host to take a platform live. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi channels go-live <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--release-unresolved` | switch | Release bookings that could not be matched |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: POST /public/v1/connections/:id/go-live. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels map

Propose a room and rate mapping (the host confirms it). Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi channels map <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--prices-win` | string | HOSTEMI \| CHANNEL |
| `--rate-plan-limit` | int | Price plans per room |
| `--go-live` | switch | Go live after mapping |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: PUT /public/v1/connections/:id/lane-setup/plan. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels disconnect

Disconnect a platform: human only, prints the page where the host does it. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi channels disconnect <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: DELETE /public/v1/connections/:id. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels compare

One connection side by side with Default and Website. Reads only. Never asks.

```bash
hostemi channels compare <id> --unit <string>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--unit` | string | Listing id Required. |

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

### hostemi channels publish

Ask the host to publish a listing on a platform. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi channels publish <id> <unitId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<unitId>` | 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: host approves · API: POST /public/v1/connections/:id/units/:unitId/publish. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels unpublish

Ask the host to unpublish a listing. Never changes anything by itself: the host approves it in the app (exit 4 and the approval link).

```bash
hostemi channels unpublish <id> <unitId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<unitId>` | yes | Listing id |

| Option | Type | Description |
| --- | --- | --- |
| `--reason` | string | A value from \`listings unpublish-reasons\` |
| `--details` | string | Free text |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: host approves · API: POST /public/v1/connections/:id/units/:unitId/unpublish. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels promotions

Promotions of a listing. Reads only. Never asks.

```bash
hostemi channels promotions <id> <unitId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<unitId>` | yes | Listing id |

| Option | Type | Description |
| --- | --- | --- |
| `--refresh` | string | 1 = read the platform first |

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

### hostemi channels promotions set

Switch promotions on or off. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels promotions set <id> <unitId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<unitId>` | yes | Listing id |

| Option | Type | Description |
| --- | --- | --- |
| `--enable` | list | Promotions to switch on: mobile, highly-rated, new-listing (or the platform type) |
| `--disable` | list | Promotions to switch off |
| `--not-on` | list | With one --enable: dates it does not apply to, YYYY-MM-DD (none = clear) |
| `--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/promotions. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi channels promotions set conn_1 unit_1 --enable mobile
```

### hostemi channels extranet-deals set

Deals you run in a platform's own extranet (Genius, Mobile rate…): advice only, nothing is sent. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

Preview: pricing.discounts

Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.

```bash
hostemi channels extranet-deals set <id> <unitId> <deals…>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<unitId>` | yes | Listing id |
| `<deals>` | yes | mobileRate, genius, deals, countryRates, member, lastMinute, earlyBird, lengthOfStay, nonRefundable (none = clear) |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/connections/:id/units/:unitId/extranet-deals. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels config

A platform's own settings for all its listings (minimum stay counts, Szállás.hu sync mode), real time. Reads only. Never asks.

```bash
hostemi channels config <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

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

### hostemi channels config set

Change a platform's own settings (Rates and Availability asks the host). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels config set <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--min-stay-type` | string | Arrival (the arrival night) \| Through (every night of the stay) One of: `Arrival`, `Through`. |
| `--sync-logic` | string | Szállás.hu: what Hostemi sends there One of: `Full connection`, `Full connection (no Stop Sell)`, `Rates and Availability`. |
| `--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/settings. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi channels config set conn_1 --min-stay-type Through
```

### hostemi channels realtime-check

Ask the platform again whether it sells from Hostemi's availability (Szállás.hu real-time allocation). Reads only. Never asks.

```bash
hostemi channels realtime-check <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: reads · API: POST /public/v1/connections/:id/allocation-mode/check. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels hold-back

Rooms held back from a platform, per listing with several rooms. Reads only. Never asks.

Preview: platforms.holdBack

Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.

```bash
hostemi channels hold-back <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

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

### hostemi channels hold-back preview

What holding rooms back would do, before saving. Reads only. Never asks.

Preview: platforms.holdBack

Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.

```bash
hostemi channels hold-back preview <id> <unitId> --rooms <int>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<unitId>` | yes | Listing id |

| Option | Type | Description |
| --- | --- | --- |
| `--rooms` | int | Rooms to hold back Required. |

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

### hostemi channels hold-back set

Hold rooms of a listing back from a platform (0 = none; the host approves holding back). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

Preview: platforms.holdBack

Behind a preview feature: a workspace without it gets 404 from the API route, and the command fails with exit 1.

```bash
hostemi channels hold-back set <id> <unitId> --rooms <int>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<unitId>` | yes | Listing id |

| Option | Type | Description |
| --- | --- | --- |
| `--rooms` | int | Rooms to hold back (0 = none) Required. |
| `--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/hold-back. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi channels hold-back set conn_1 unit_1 --rooms 1
```

### hostemi channels platform-wide

Which amount a booking carries, and how no-shows are reported. 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 channels platform-wide <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

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

### hostemi channels no-show-policy

Waive the no-show fee when a no-show is reported (Booking.com; 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 channels no-show-policy <id> <waive>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<waive>` | yes | on \| off \| none |

| Option | Type | Description |
| --- | --- | --- |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: changes · API: PUT /public/v1/connections/:id/no-show-policy. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi channels no-show-policy conn_1 on
```

### hostemi channels get

One connection with its mappings and recent sync events. Reads only. Never asks.

```bash
hostemi channels get <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

| Option | Type | Description |
| --- | --- | --- |
| `--mappings` | string | CONTENT (default), ALL or one kind |
| `--limit` | int | Events to show (default 100) |

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

### hostemi channels held

Bookings a platform sent that wait for a listing. Reads only. Never asks.

```bash
hostemi channels held <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |

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

Examples

```bash
hostemi platforms held <platformId>
```

### hostemi channels held link

Put a waiting booking on one of your listings. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels held link <id> <bookingId> --listing <string>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform id |
| `<bookingId>` | yes | From: platforms held <platformId> |

| Option | Type | Description |
| --- | --- | --- |
| `--listing` | string | The listing the booking belongs to Required. |
| `--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/needs-mapping/:bookingId/link. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels held retry

Read the waiting bookings from the platform again. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels held retry <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Connected platform 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/connections/:id/needs-mapping/retry. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels available

Platforms that can be connected, and how. Reads only. Never asks.

```bash
hostemi channels available
```

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

### hostemi channels how-to-connect

The steps to connect one platform (creates nothing). Reads only. Never asks.

```bash
hostemi channels how-to-connect <platform>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<platform>` | yes | Airbnb, BOOKING\_COM, SZALLAS\_HU, Expedia, Vrbo … |

| Option | Type | Description |
| --- | --- | --- |
| `--property` | string | Property id: the link opens on it |
| `--input` | file | JSON body from a file, or - for stdin; flags win over it |
| `--data` | json | JSON body inline |

Mode: reads · API: POST /public/v1/onboarding/import-platform/how-to-connect. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi platforms how-to-connect airbnb
```

### hostemi channels import-start

Start bringing your listings in from a platform. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels import-start <platform>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<platform>` | yes | AIRBNB, BOOKING\_COM, SZALLAS\_HU, EXPEDIA, AGODA, TRIP\_COM or HOSTELWORLD |

| Option | Type | Description |
| --- | --- | --- |
| `--property-id` | string | The property ID from the platform's extranet (a number; Trip.com: Hotel Code) |
| `--currency` | string | TRIP\_COM and HOSTELWORLD only: the currency you use there, like EUR |
| `--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/onboarding/import-platform/start. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

Examples

```bash
hostemi platforms import-start BOOKING_COM --property-id 1234567
```

### hostemi channels import-status

The listings an import found. Reads only. Never asks.

```bash
hostemi channels import-status <sessionId>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<sessionId>` | yes | From: platforms import-start |

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

### hostemi channels import-apply

Add the listings you pick from an import (connected, not live). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi channels import-apply <sessionId> [listings…]
```

| Argument | Required | Description |
| --- | --- | --- |
| `<sessionId>` | yes | From: platforms import-start |
| `<listings>` | no | The ids to add, from: platforms import-status |

| Option | Type | Description |
| --- | --- | --- |
| `--listings` | json | Instead of ids: \[{"externalId":"…","group":"…","attachToUnitId":"…"}\] |
| `--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/onboarding/import-platform/:sessionId/apply. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

### hostemi channels status

Connected platforms: state, last sync, last error. Reads only. Never asks.

```bash
hostemi channels status [--property <id>]
```

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

Mode: reads · API: GET /public/v1/connections. 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.
