Commands: calendar and blocks

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

Overview

CommandModeWhat it does
availability roomschangesRooms that physically exist per night (a renovated room); for closed dates use `block`
blocks updatechangesChange a block: nights, kind, rooms or reason
calendarreadsFree, booked and closed nights for every listing
blockchangesClose nights on a listing (your own stay, maintenance)
unblockchangesOpen 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]
ArgumentRequiredDescription
<listing>noListing name or id
<range>nofrom:to, both nights included, or 30d from today; one date = two weeks from that day
OptionTypeDescription
--nextstringHow far ahead, e.g. 14d (default) or 30d
--unitstringListing name or id
--propertystringProperty id

Mode: reads · API: GET /public/v1/calendar. Every command also takes the global options.

Examples
hostemi calendar
hostemi calendar "Lake House" 2026-12-20:2027-01-05
Example
hostemi calendar
Output (recorded in a test workspace, exit 0)
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.

hostemi block <listing> <range> [--reason <text>]
ArgumentRequiredDescription
<listing>yesListing name or id
<range>yesfrom:to, both nights included (YYYY-MM-DD, today, tomorrow); one date = one night
OptionTypeDescription
--reasonstringWhy (kept on the block)

Mode: changes · API: POST /public/v1/blocks. Every command also takes the global options.

Examples
hostemi block "Lake House" 2026-12-24:2026-12-26 --reason "family"
Example
hostemi block cmwhux6y60026somfhixjmcm8 2027-08-10:2027-08-11 --reason maintenance --dry-run
Output (recorded in a test workspace, exit 0)
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.

hostemi unblock <listing> <range>
ArgumentRequiredDescription
<listing>yesListing name or id
<range>yesfrom: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>
ArgumentRequiredDescription
<id>yesBlock id (from `calendar`)
OptionTypeDescription
--first-nightdateNew first night
--last-nightdateNew last night (inclusive)
--kindstringOWNER | MAINTENANCE
--roomsintRooms blocked
--reasonstringReason
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON 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>
ArgumentRequiredDescription
<unit>yesListing id
OptionTypeDescription
--roomsintRooms on each night (0 to the listing room count) Required.
--fromdateFirst night Required.
--todateLast night (inclusive) Required.
--inputfileJSON body from a file, or - for stdin; flags win over it
--datajsonJSON body inline

Mode: changes · API: PUT /public/v1/availability/physical. Every command also takes the global options.

Something missing from this page? Write to [email protected], or use the form on the Help page.