@hoststack/cli

Deploy from your terminal

The HostStack CLI gives you full control over your infrastructure without leaving the command line. Deploy, manage, and monitor — all from your terminal.

Get started in seconds

npm
npm install -g @hoststack/cli
bun
bun add -g @hoststack/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

Deploy in one command

Trigger deploys, rollback, and cancel builds without leaving the terminal.

Stream logs live

Tail build and runtime logs with filtering by level, phase, and search.

Manage everything

Projects, services, databases, domains, env vars, and cron jobs from the CLI.

Infrastructure as code

Define your stack in hoststack.yaml and validate it locally before deploying.

Full command reference

Auth

hoststack login

hoststack whoami

Projects

hoststack projects list

hoststack projects create

hoststack projects delete

Services

hoststack services list

hoststack services create

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

Databases

hoststack db list

hoststack db credentials

hoststack db connect

Logs

hoststack logs

IaC

hoststack init

hoststack validate

Ready to try it?

Install the CLI, authenticate with your API key, and deploy your first service in under a minute.

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