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/clibun
bun add -g @hoststack/cliAuthentication
Get your API key from Settings > API Keys in your dashboard.
bash
hoststack login --key hs_live_your_api_key
hoststack whoamiCommand Reference
Authentication
| Command | Description |
|---|---|
hoststack login | Authenticate with your API key |
hoststack whoami | Show current user and team info |
Projects
| Command | Description |
|---|---|
hoststack projects list | List all projects |
hoststack projects create | Create a new project |
hoststack projects delete | Delete a project |
Services
| Command | Description |
|---|---|
hoststack services list | List all services |
hoststack services create | Create a new service |
hoststack services scale | Scale instance count |
hoststack services suspend | Suspend a service |
hoststack services resume | Resume a suspended service |
Deploys
| Command | Description |
|---|---|
hoststack deploy trigger | Trigger a deploy |
hoststack deploy list | List recent deploys |
hoststack deploy logs | Stream deploy build logs |
hoststack deploy cancel | Cancel an in-progress deploy |
hoststack deploy rollback | Rollback to previous deploy |
Environment Variables
| Command | Description |
|---|---|
hoststack env list | List all variables |
hoststack env set | Set a variable |
hoststack env get | Get a variable value |
hoststack env delete | Delete a variable |
Databases
| Command | Description |
|---|---|
hoststack db list | List all databases |
hoststack db credentials | Show connection details |
hoststack db connect | Connect via psql/redis-cli |
Runtime
| Command | Description |
|---|---|
hoststack logs | Stream runtime logs |
Infrastructure as Code
| Command | Description |
|---|---|
hoststack init | Generate a hoststack.yaml template |
hoststack validate | Validate your hoststack.yaml |
Common Workflows
Deploy and watch logs
hoststack deploy trigger svc_abc123
hoststack deploy logs svc_abc123Set 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-cacheNext: SDK Reference