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 up
Deploy a stack to production. This command combines push, build, and deploy into a single operation and watches progress until completion.Usage
Arguments
Name of the specific stack to deployIf not provided, deploys all stacks defined in
hyperstack.toml.Options
Deploy to a specific branch environmentCreates a branch deployment at
{stack-name}-{branch}.stack.usehyperstack.com.Example: --branch staging deploys to my-stack-staging.stack.usehyperstack.comCreate a preview deployment with auto-generated branch nameUseful for pull request previews. Generates a unique branch name like
preview-a8f3d2.Conflicts with --branch.Show what would be deployed without actually deployingValidates configuration and shows the deployment plan.
Deployment Flow
Theup command performs these steps:
- Push - Upload stack definitions to remote
- Build - Compile and containerize the stack
- Deploy - Start the stack on Hyperstack infrastructure
- Watch - Monitor deployment progress until live
Examples
Deploy All Stacks
Deploy Specific Stack
nft-indexer stack.
Branch Deployment
wss://nft-indexer-staging.stack.usehyperstack.com
Useful for:
- Staging environments
- Testing before production
- Feature branches
Preview Deployment
Dry Run
Build Progress
During deployment, you’ll see real-time progress:Deployment Stages
1. Push Stage
Uploads stack definitions to Hyperstack:2. Build Stage
Creates a new build:3. Compilation Stage
4. Deployment Stage
Error Handling
Configuration Error
hs init or hs create first.
Authentication Required
hs auth login.
Stack File Not Found
hyperstack.toml is correct.
Build Failed
hs up again.
Deployment Failed
Watching Progress
The command watches deployment progress by default. To deploy without watching:hs build for low-level build management.
Branch Naming Conventions
Branch deployments follow this pattern:- Production:
{stack-name}.stack.usehyperstack.com - Branch:
{stack-name}-{branch}.stack.usehyperstack.com - Preview:
{stack-name}-preview-{random}.stack.usehyperstack.com
- Be lowercase alphanumeric with hyphens
- Not start or end with a hyphen
- Be 1-63 characters
Rollback
If a deployment has issues, rollback to a previous version:hs stack rollback for details.
CI/CD Integration
GitHub Actions
.github/workflows/deploy.yml
Return Codes
0- Deployment successful1- Deployment failed
Related Commands
hs stack push- Push stacks without buildinghs build create- Create build manuallyhs stack rollback- Rollback deploymenths stack show- View deployment status