Documentation Index
Fetch the complete documentation index at: https://mintlify.com/hypertekorg/hyperstack/llms.txt
Use this file to discover all available pages before exploring further.
hs stack
Manage your deployed stacks with commands for listing, viewing details, pushing updates, rollback, and deletion.Subcommands
hs stack list- List all stacks with deployment statushs stack push- Push local stacks to remotehs stack show- Show detailed stack informationhs stack versions- Show version historyhs stack delete- Delete a stack from remotehs stack rollback- Rollback to a previous deploymenths stack stop- Stop a deployment
list
List all stacks with their deployment status.Usage
Options
Output in JSON format
Example
JSON Output
push
Push local stack definitions to remote. Creates a new version if the stack definition has changed.Usage
Arguments
Name of specific stack to pushIf not provided, pushes all stacks from
hyperstack.toml.Examples
Push All Stacks
Push Specific Stack
Notes
- Only creates a new version if the stack definition changed
- Does not trigger a build or deployment (use
hs upfor that) - Useful for versioning without deploying
show
Show detailed information about a stack including deployment status, versions, and configuration.Usage
Arguments
Name of the stack
Options
Show specific version details
Output in JSON format
Examples
Show Latest Version
Show Specific Version
versions
Show version history for a stack.Usage
Arguments
Name of the stack
Options
Maximum number of versions to show
Output in JSON format
Example
Limit Results
delete
Delete a stack from remote. This stops all deployments and removes all versions.Usage
Arguments
Name of the stack to delete
Options
Skip confirmation prompt
Examples
Interactive Delete
Force Delete (No Confirmation)
rollback
Rollback a deployment to a previous version.Usage
Arguments
Name of the stack to rollback
Options
Rollback to specific version numberIf not provided, rolls back to the previous successful deployment.
Rollback to specific build ID
Branch deployment to rollback
Force full rebuild instead of using existing image
Don’t watch the rollback progress
Examples
Rollback to Previous Version
Rollback to Specific Version
Rollback to Specific Build
Rollback Branch Deployment
Force Rebuild
How Rollback Works
- Find target version/build - Determines which version to rollback to
- Check existing build - Looks for a successful build of that version
- Rebuild if needed - Creates a new build if
--rebuildis used or no build exists - Deploy - Deploys the target build
- Verify - Confirms the rollback was successful
When to Use Rollback
- Production incident caused by recent deployment
- New version has bugs
- Need to quickly restore service
When to Use Rebuild
- Previous build artifacts are corrupted
- Infrastructure changes require new images
- Rollback fails with existing build
stop
Stop a running deployment.Usage
Arguments
Name of the stack to stop
Options
Branch deployment to stopIf not provided, stops the production deployment.
Skip confirmation prompt
Examples
Stop Production Deployment
Stop Branch Deployment
Force Stop (No Confirmation)
When to Stop a Deployment
- Maintenance window
- Critical bug requires immediate shutdown
- Cost optimization (stop unused environments)
- Before deleting a stack
Restarting a Stopped Deployment
To restart, deploy again:Return Codes
Allhs stack commands use standard return codes:
0- Success1- Error
Related Commands
hs up- Deploy a stackhs build- Manage buildshs explore- Explore stack schemas