| Crates.io | hyperstack-cli |
| lib.rs | hyperstack-cli |
| version | 0.3.5 |
| created_at | 2026-01-09 06:18:41.965128+00 |
| updated_at | 2026-01-24 05:46:44.339375+00 |
| description | CLI tool for generating TypeScript SDKs from HyperStack stream specifications |
| homepage | |
| repository | https://github.com/HyperTekOrg/hyperstack.git |
| max_upload_size | |
| id | 2031679 |
| size | 279,386 |
Command-line tool for building, deploying, and managing HyperStack stream stacks.
cargo install hyperstack-cli
git clone https://github.com/HyperTekOrg/hyperstack.git
cd hyperstack
cargo install --path cli
# Initialize project (auto-discovers AST files)
hs init
# Authenticate
hs auth login
# Deploy
hs up
That's it! Your stack is deployed and you'll see the WebSocket URL.
| 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 |
# Make changes to your stack, rebuild
cargo build
# Deploy
hs up
# Check status
hs status
hs stack listList 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:
hs stack show settlement-game
Shows: entity info, deployment status, version history, recent builds.
hs stack push [name]Push local stacks to remote without deploying:
hs stack push # Push all
hs stack push settlement-game # Push one
hs stack versions <name>Show version history:
hs stack versions settlement-game --limit 10
hs stack rollback <name>Rollback to a previous version:
hs stack rollback settlement-game # Previous version
hs stack rollback settlement-game --to 2 # Specific version
hs stack delete <name>Delete a stack:
hs stack delete settlement-game
hs up [stack-name]The happy path - push, build, and deploy in one command:
hs up # Deploy all
hs up settlement-game # Deploy one
hs up settlement-game --branch staging # Branch deploy
hs up settlement-game --preview # Preview deployment
hs auth register # Create new account
hs auth login # Login
hs auth logout # Logout
hs auth whoami # Verify with server
Credentials: ~/.hyperstack/credentials.toml
hs sdk list # List available stacks
hs sdk create typescript settlement-game # Generate TypeScript SDK
hs sdk create rust settlement-game # Generate Rust SDK
File: hyperstack.toml
[project]
name = "my-project"
[sdk]
output_dir = "./generated"
# Stacks - auto-discovered from .hyperstack/*.ast.json
# Define explicitly for custom naming:
[[stacks]]
name = "my-game"
ast = "SettlementGame"
For most projects, you only need:
[project]
name = "my-project"
The CLI auto-discovers stacks from .hyperstack/*.ast.json files.
| Type | Pattern |
|---|---|
| Production | wss://{stack-name}.stack.usehyperstack.com |
| Branch | wss://{stack-name}-{branch}.stack.usehyperstack.com |
| Variable | Description |
|---|---|
HYPERSTACK_API_URL |
Override API endpoint |
| 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 |
Apache-2.0