---
title: "Commands: calendar and blocks | Hostemi"
description: "calendar, block, unblock and the blocks and rooms commands. Step-by-step help from the Hostemi docs for vacation rental hosts, cli command reference section."
canonical: https://hostemi.com/docs/cli/reference/calendar
source: https://hostemi.com/docs/cli/reference/calendar.md
---

# Commands: calendar and blocks

calendar, block, unblock and the blocks and rooms commands.

#### On this page

1. [Overview](#overview)
2. [calendar](#calendar)
3. [block](#block)
4. [unblock](#unblock)
5. [blocks](#blocks)
6. [availability](#availability)

## Overview

| Command | Mode | What it does |
| --- | --- | --- |
| [`availability rooms`](#availability-rooms) | changes | Rooms that physically exist per night (a renovated room); for closed dates use \`block\` |
| [`blocks update`](#blocks-update) | changes | Change a block: nights, kind, rooms or reason |
| [`calendar`](#calendar) | reads | Free, booked and closed nights for every listing |
| [`block`](#block) | changes | Close nights on a listing (your own stay, maintenance) |
| [`unblock`](#unblock) | changes | Open blocked nights again |

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

## calendar

### hostemi calendar

Free, booked and closed nights for every listing. Reads only. Never asks.

```bash
hostemi calendar [listing] [range] [--next 14d]
```

| Argument | Required | Description |
| --- | --- | --- |
| `<listing>` | no | Listing name or id |
| `<range>` | no | from:to, both nights included, or 30d from today; one date = two weeks from that day |

| Option | Type | Description |
| --- | --- | --- |
| `--next` | string | How far ahead, e.g. 14d (default) or 30d |
| `--unit` | string | Listing name or id |
| `--property` | string | Property id |

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

Examples

```bash
hostemi calendar
hostemi calendar "Lake House" 2026-12-20:2027-01-05
```

Example

```bash
hostemi calendar
```

Output (recorded in a test workspace, exit 0)

```text
Calendar · Nov 19 → Dec 2

                    Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We
                    19 20 21 22 23 24 25 26 27 28 29 30  1  2
Lake house           ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·  ·

· free   ■ booked   × closed
```

## block

### hostemi block

Close nights on a listing (your own stay, maintenance). Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi block <listing> <range> [--reason <text>]
```

| Argument | Required | Description |
| --- | --- | --- |
| `<listing>` | yes | Listing name or id |
| `<range>` | yes | from:to, both nights included (YYYY-MM-DD, today, tomorrow); one date = one night |

| Option | Type | Description |
| --- | --- | --- |
| `--reason` | string | Why (kept on the block) |

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

Examples

```bash
hostemi block "Lake House" 2026-12-24:2026-12-26 --reason "family"
```

Example

```bash
hostemi block cmwhux6y60026somfhixjmcm8 2027-08-10:2027-08-11 --reason maintenance --dry-run
```

Output (recorded in a test workspace, exit 0)

```text
Dry run, nothing sent:
  Close 2 nights on Lake house (Aug 10 → 11, 2027): maintenance.
```

## unblock

### hostemi unblock

Open blocked nights again. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi unblock <listing> <range>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<listing>` | yes | Listing name or id |
| `<range>` | yes | from:to, both nights included (YYYY-MM-DD, today, tomorrow); one date = one night |

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

## blocks

### hostemi blocks update

Change a block: nights, kind, rooms or reason. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi blocks update <id>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<id>` | yes | Block id (from \`calendar\`) |

| Option | Type | Description |
| --- | --- | --- |
| `--first-night` | date | New first night |
| `--last-night` | date | New last night (inclusive) |
| `--kind` | string | OWNER \| MAINTENANCE |
| `--rooms` | int | Rooms blocked |
| `--reason` | string | Reason |
| `--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/blocks/:id. Every command also takes the [global options](https://hostemi.com/docs/cli/usage).

## availability

### hostemi availability rooms

Rooms that physically exist per night (a renovated room); for closed dates use \`block\`. Changes data at once: asks first, or --yes. --dry-run prints the request instead.

```bash
hostemi availability rooms <unit> --rooms <int> --from <date> --to <date>
```

| Argument | Required | Description |
| --- | --- | --- |
| `<unit>` | yes | Listing id |

| Option | Type | Description |
| --- | --- | --- |
| `--rooms` | int | Rooms on each night (0 to the listing room count) Required. |
| `--from` | date | First night Required. |
| `--to` | date | Last night (inclusive) 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/availability/physical. 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.
