Documentation

Everything you need to deploy and manage your applications on HostStack.

CLI Reference

The HostStack CLI lets you manage your infrastructure from the terminal.

Installation

npm
npm install -g @hoststack/cli
bun
bun add -g @hoststack/cli

Authentication

Get your API key from Settings > API Keys in your dashboard.

bash
hoststack login --key hs_live_your_api_key
hoststack whoami

Command Reference

Authentication

CommandDescription
hoststack loginAuthenticate with your API key
hoststack whoamiShow current user and team info

Projects

CommandDescription
hoststack projects listList all projects
hoststack projects createCreate a new project
hoststack projects deleteDelete a project

Services

CommandDescription
hoststack services listList all services
hoststack services createCreate a new service
hoststack services scaleScale instance count
hoststack services suspendSuspend a service
hoststack services resumeResume a suspended service

Deploys

CommandDescription
hoststack deploy triggerTrigger a deploy
hoststack deploy listList recent deploys
hoststack deploy logsStream deploy build logs
hoststack deploy cancelCancel an in-progress deploy
hoststack deploy rollbackRollback to previous deploy

Environment Variables

CommandDescription
hoststack env listList all variables
hoststack env setSet a variable
hoststack env getGet a variable value
hoststack env deleteDelete a variable

Databases

CommandDescription
hoststack db listList all databases
hoststack db credentialsShow connection details
hoststack db connectConnect via psql/redis-cli

Runtime

CommandDescription
hoststack logsStream runtime logs

Infrastructure as Code

CommandDescription
hoststack initGenerate a hoststack.yaml template
hoststack validateValidate your hoststack.yaml

Common Workflows

Deploy and watch logs
hoststack deploy trigger svc_abc123
hoststack deploy logs svc_abc123
Set up environment and deploy
hoststack env set svc_abc123 NODE_ENV=production
hoststack env set svc_abc123 DATABASE_URL=postgres://...
hoststack deploy trigger svc_abc123 --clear-cache