@hoststack.dev/cli
v0.9.0
Published
Official command-line interface for HostStack — deploy and manage web services, databases, cron jobs, and domains on European infrastructure. See https://hoststack.dev
Maintainers
Readme
@hoststack.dev/cli
Official command-line interface for HostStack — the European PaaS for deploying web services, databases, cron jobs, and domains on Hetzner infrastructure.
Think Render.com, but hosted in Europe, built for developers who care about latency and data residency.
- Website: hoststack.dev
- Documentation: hoststack.dev/docs
- CLI reference: hoststack.dev/docs/cli
- Source: github.com/gethoststack/cli
Installation
npm install -g @hoststack.dev/cli
# or
bun add -g @hoststack.dev/cli
# or
pnpm add -g @hoststack.dev/cliRequires Node.js 18+.
Quick start
# Authenticate with an API key from hoststack.dev → Settings → API Keys
hoststack login --key hs_live_your_api_key
# Confirm you're in
hoststack whoami
# List your services
hoststack services list
# Trigger a deploy
hoststack deploy trigger svc_abc123
# Tail runtime logs
hoststack logs svc_abc123Commands
Auth
hoststack login— authenticate with your API keyhoststack whoami— show current user and team
Resources
hoststack projects— manage projectshoststack services— manage services (web, worker, cron, static site)hoststack domains— manage custom domainshoststack db— manage databases (Postgres, MySQL, MariaDB, MongoDB, Redis);db connect <id>opens an interactivepsql/mysql/mongo/redis-clisessionhoststack volumes— manage persistent disks attached to a servicehoststack env— manage environment variables (per service)hoststack environments— manage environments (production / staging / development / preview) per projecthoststack cron— manage cron job executions
Operations
hoststack deploy— trigger, list, and cancel deploymentshoststack logs <service-id>— stream runtime logs
Infrastructure as code
hoststack init— generate a starterhoststack.yamlhoststack validate— validate yourhoststack.yaml
Run hoststack help for the full list.
Configuration
Config is stored at ~/.hoststack/config.json. Environment variables override the config file:
| Variable | Description |
| ------------------- | -------------------------------------------------- |
| HOSTSTACK_API_KEY | API key (e.g. hs_live_…) |
| HOSTSTACK_API_URL | API base URL (defaults to https://hoststack.dev) |
| HOSTSTACK_TEAM_ID | Active team ID |
Related packages
- @hoststack.dev/sdk — TypeScript SDK for programmatic access
- @hoststack.dev/mcp — MCP server for Claude, Cursor, and other AI agents
- Terraform provider — see hoststack.dev/docs for installation and resource reference
Support
- Issues: github.com/gethoststack/cli/issues
- Docs: hoststack.dev/docs
- Homepage: hoststack.dev
License
MIT © HostStack Contributors
