---
title: "The hostemi command line | Hostemi"
description: "Install the hostemi command, sign in, and run your rentals from a terminal, a script or a coding agent. From the Hostemi docs for vacation rental hosts."
canonical: https://hostemi.com/docs/cli
source: https://hostemi.com/docs/cli.md
---

# The hostemi command line

Install the hostemi command, sign in, and run your rentals from a terminal, a script or a coding agent.

#### On this page

1. [What it is for](#what-it-is-for)
2. [Install](#install)
3. [Sign in](#sign-in)
4. [First commands](#first-commands)
5. [The whole help](#the-whole-help)
6. [Connect your AI](#connect-your-ai)

## What it is for

`hostemi` runs Hostemi from a terminal: the calendar, prices, bookings, guest messages, platforms and your booking website. For you it prints short tables; for a script or a coding agent every command answers `--json` with stable exit codes. It talks to the [REST API](https://hostemi.com/docs/api) with the same rules: what changes something shows you first, and your approval setting applies.

Every route of the API has a command (302 commands, short names included), and `hostemi api` reaches any route directly. It needs Node 22 or newer and a workspace on Pro or Complete (the free trial counts).

## Install

```bash
npm i -g hostemi
hostemi --version
```

Run it with no arguments

```bash
hostemi
```

Output (recorded, exit 0)

```text
Hostemi 0.4.0

  Not signed in yet. Start with:  hostemi login

  hostemi status     what needs you today
  hostemi calendar   free and booked nights, the next two weeks
  hostemi bookings   upcoming bookings

  Connect your AI:   hostemi agent setup
  Everything else:   hostemi help
```

`hostemi update` checks for a newer version and prints the command to install it; the CLI also checks by itself now and then (`HOSTEMI_NO_UPDATE_CHECK=1` turns that off).

## Sign in

```bash
hostemi login
hostemi whoami
```

`hostemi login` opens your browser, where you approve this computer. For scripts use a key in `HOSTEMI_TOKEN`. [Sign-in in detail](https://hostemi.com/docs/cli/authentication).

## First commands

```bash
hostemi status                                   # what needs you today
hostemi calendar                                 # the next two weeks
hostemi bookings                                 # upcoming bookings
hostemi block "Lake House" 2026-12-24:2026-12-26 --reason "family"
hostemi prices adjust <listing id> 2026-07-01:2026-07-31 +10% --weekdays fri,sat
hostemi inbox
```

What it looks like

```bash
hostemi status
```

Output (recorded in a test workspace, exit 0)

```text
Hostemi · Thu, Nov 19

Arriving today: nobody
Leaving today: nobody
Staying: nobody

Needs you: 2 bookings not paid yet.  hostemi bookings

Nov 1 → 30: €0 revenue, 0% of nights booked, €0 average night

Plan: Pro: active.
```

Command

```bash
hostemi bookings
```

Output (recorded in a test workspace, exit 0)

```text
Booking          Dates        Nights  Guest        Listing      Status     Total
HST-2026-000001  Dec 5 → 8         3  Lena Hoffm…  Lake house   Confirmed   €360
HST-2026-000012  Dec 27 → 30       3  Anna Keller  Lake house   Confirmed   €360

One booking: hostemi booking <Booking>   ids: add --json
```

See also: [everyday commands](https://hostemi.com/docs/cli/commands), [how changes are made](https://hostemi.com/docs/cli/approvals).

## The whole help

Command

```bash
hostemi --help
```

Output (recorded, exit 0)

```text
hostemi 0.4.0: run your rentals from a terminal, or let your AI do it.

Usage: hostemi <command> [arguments] [options]

Start here
  login                           Sign in: opens the browser
  status                          What needs you today
  doctor                          Check that everything is set up
  agent setup                     Connect Claude Code, Codex, Cursor, VS Code

Every day
  calendar [listing] [range]      Free, booked and closed nights
  block <listing> <range>         Close nights (unblock opens them again)
  bookings                        Upcoming bookings (booking <id> for one)
  inbox                           Guest conversations (inbox reply <id>)
  prices get|set|adjust|explain   Nightly prices, everywhere or per platform
  rules get|set                   Stay rules: minimum nights, arrival days
  report [--csv]                  Revenue and occupancy

Set up
  platforms                       Connected platforms (connect, sync, pause)
  site get|edit|publish           Your booking website
  automations                     Scheduled messages
  seasons, discounts, fees, taxes, reviews, guests, properties, units

Changes
  apply <changeId>                Make a previewed change real
  approvals [--wait]              Changes waiting for you (approve in the app)

More
  mcp config --client <name>      Print the config for one AI tool
  completion zsh|bash|fish        Shell completion
  api <METHOD> <path>             Call any API route
  update, whoami, logout
  help [command] [--all|--json]   One command, every command, or the tree

Options
  --json                          Machine-readable output, on every command
  --dry-run                       Change nothing; show what would happen
  --yes, -y                       Do not ask before a change
  --wait                          Wait for the host’s decision on a change
  --api <url>                     API address (default https://api.hostemi.com)
  --lang en|hu                    Language of the everyday commands
  --no-color                      Plain text (NO_COLOR=1 does the same)
  --help, -h; --version, -v

Env: HOSTEMI_TOKEN, HOSTEMI_API_URL, HOSTEMI_APP_URL, HOSTEMI_MCP_URL

Exit codes:
  0  done
  1  failed (API, network, not found, plan)
  2  wrong arguments, or a change that needs --yes
  3  not signed in, or the key was refused
  4  waits for the host’s approval; nothing changed
  5  the host declined it, or it expired
  6  only the host can do this, in the app

Prices are whole units of the listing’s currency (120 = €120).
Nights are YYYY-MM-DD; a range is from:to, both nights included.
Weekdays are 1 = Monday … 7 = Sunday.
Without a terminal nothing ever asks: add --yes to change something.
Docs: https://hostemi.com/docs/cli
```

## Connect your AI

One command adds the Hostemi MCP server to Claude Code, Codex, Cursor and VS Code on this computer:

```bash
hostemi agent setup --dry-run
hostemi agent setup
```

See also: [coding agents and completion](https://hostemi.com/docs/cli/agents), [the MCP server](https://hostemi.com/docs/mcp).

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.
