hyperstack-cli-0.3.2 is not a library.
hyperstack-cli
Command-line tool for building, deploying, and managing HyperStack stream stacks.
Installation
From Source
Quick Start
# Initialize project (auto-discovers AST files)
# Authenticate
# Deploy
That's it! Your stack is deployed and you'll see the WebSocket URL.
Command Overview
| Command | Description |
|---|---|
hs init |
Initialize project |
hs up [stack] |
Deploy (push + build + deploy) |
hs status |
Show project overview |
hs stack list |
List all stacks |
hs stack show <name> |
Show stack details |
hs stack rollback <name> |
Rollback to previous version |
Daily Workflow
# Make changes to your stack, rebuild
# Deploy
# Check status
Stack Commands
hs stack list
List all stacks with deployment status:
STACK STATUS VERSION URL
settlement-game active v3 wss://settlement-game.stack.usehyperstack.com
token-tracker active v1 wss://token-tracker.stack.usehyperstack.com
hs stack show <name>
Show detailed information:
Shows: entity info, deployment status, version history, recent builds.
hs stack push [name]
Push local stacks to remote without deploying:
hs stack versions <name>
Show version history:
hs stack rollback <name>
Rollback to a previous version:
hs stack delete <name>
Delete a stack:
Deployment
hs up [stack-name]
The happy path - push, build, and deploy in one command:
Authentication
Credentials: ~/.hyperstack/credentials.toml
SDK Generation
Configuration
File: hyperstack.toml
[]
= "my-project"
[]
= "./generated"
# Stacks - auto-discovered from .hyperstack/*.ast.json
# Define explicitly for custom naming:
[[]]
= "my-game"
= "SettlementGame"
For most projects, you only need:
[]
= "my-project"
The CLI auto-discovers stacks from .hyperstack/*.ast.json files.
WebSocket URLs
| Type | Pattern |
|---|---|
| Production | wss://{stack-name}.stack.usehyperstack.com |
| Branch | wss://{stack-name}-{branch}.stack.usehyperstack.com |
Environment Variables
| Variable | Description |
|---|---|
HYPERSTACK_API_URL |
Override API endpoint |
Troubleshooting
| Error | Solution |
|---|---|
Not authenticated |
Run hs auth login |
Stack not found |
Check hs stack list |
AST file not found |
Run cargo build to generate AST |
Build failed |
Check hs status for build details |
License
Apache-2.0