Skip to content
@hoststack.dev/cli

A CLI that mirrors the dashboard, one-to-one

Built for developers who live in a terminal. Deploy a service, tail its logs, open a psql shell against a managed database, or scale a worker fleet — all without reaching for a mouse.

Install it in one line

npm
npm install -g @hoststack.dev/cli
bun
bun add -g @hoststack.dev/cli
terminal
$ hoststack login --key hs_live_...
✓ Authenticated as michael@hoststack.dev
$ hoststack deploy trigger svc_abc123
  Cloning repository...
✓ Build complete (14s)
✓ Container healthy
✓ Deployed to https://my-app.hoststack.dev
$ hoststack logs svc_abc123 --lines 5
[12:04:01] GET /api/health 200 2ms
[12:04:03] GET /api/users 200 18ms
[12:04:05] POST /api/auth/login 200 42ms

Ship without context-switching

Trigger deploys, cancel builds in flight, and roll back in a single command — no browser tab required.

Logs that actually help

Tail build and runtime logs with filtering by level, phase, service, and free-text search. Pipe it into grep, jq, or your editor.

Day-to-day ops, scripted

Projects, services, deploys, managed databases, custom domains, env vars, persistent volumes, environments, cron executions, and the machines you own — all from the terminal.

hoststack.yaml + Terraform

Declare your stack as code, validate locally, and diff against production before you push. A first-party Terraform provider ships alongside.

Full command reference

Auth

  • hoststack login
  • hoststack whoami

Projects

  • hoststack projects list
  • hoststack projects create
  • hoststack projects delete

Services

  • hoststack services list
  • hoststack services get
  • hoststack services create
  • hoststack services delete
  • hoststack services scale
  • hoststack services suspend
  • hoststack services resume

Deploys

  • hoststack deploy trigger
  • hoststack deploy list
  • hoststack deploy logs
  • hoststack deploy cancel
  • hoststack deploy rollback

Env Vars

  • hoststack env list
  • hoststack env set
  • hoststack env get
  • hoststack env delete
  • hoststack env bulk
  • hoststack env import

Databases

  • hoststack db list
  • hoststack db get
  • hoststack db create
  • hoststack db credentials
  • hoststack db connect
  • hoststack db delete

Domains

  • hoststack domains list
  • hoststack domains add
  • hoststack domains verify
  • hoststack domains delete

Volumes

  • hoststack volumes list
  • hoststack volumes create
  • hoststack volumes resize
  • hoststack volumes delete

Environments

  • hoststack environments list
  • hoststack environments create
  • hoststack environments delete

Own hardware

  • hoststack machines list
  • hoststack machines show
  • hoststack machines add
  • hoststack machines remove

Cron

  • hoststack cron list
  • hoststack cron get
  • hoststack cron trigger

Logs

  • hoststack logs

IaC

  • hoststack init
  • hoststack validate

Two commands and you are live

Install the CLI, paste a HostStack API key, and push your first service to European infrastructure before the install script finishes warming the cache.

npm install -g @hoststack.dev/cli && hoststack login

Essential cookies only — for login sessions. No tracking. Details