Commands: calendar and blocks
calendar, block, unblock and the blocks and rooms commands.
Overview
| Command | Mode | What it does |
|---|---|---|
availability rooms | changes | Rooms that physically exist per night (a renovated room); for closed dates use `block` |
blocks update | changes | Change a block: nights, kind, rooms or reason |
calendar | reads | Free, booked and closed nights for every listing |
block | changes | Close nights on a listing (your own stay, maintenance) |
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.
calendar
hostemi calendar
Free, booked and closed nights for every listing. Reads only. Never asks.
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.
hostemi calendar
hostemi calendar "Lake House" 2026-12-20:2027-01-05hostemi calendarCalendar · 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 × closedblock
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.
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.
hostemi block "Lake House" 2026-12-24:2026-12-26 --reason "family"hostemi block cmwhux6y60026somfhixjmcm8 2027-08-10:2027-08-11 --reason maintenance --dry-runDry 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.
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.
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.
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.
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.
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.