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 init
Initialize a Hyperstack project by creating ahyperstack.toml configuration file. The command auto-detects .stack files in your project directory.
Usage
Description
Theinit command:
- Scans the current directory for
.stackfiles - Creates a
hyperstack.tomlconfiguration file - Registers each stack with default settings
- Sets up SDK generation configuration (optional)
Options
Path to the configuration file to create
Show detailed output during initialization
Examples
Basic Initialization
.stack files and creates hyperstack.toml:
Custom Configuration Path
Generated Configuration
A typical generatedhyperstack.toml:
hyperstack.toml
Interactive Configuration
After scanning for stacks, you may be prompted to configure:- Stack names (defaults to filename without extension)
- SDK output directories
- Package/crate names for generated SDKs
Stack Detection
The command searches for files matching:**/*.stack- Stack definition files- Excludes:
node_modules/,target/,.git/
Validation
After creating the configuration, validate it:- TOML syntax is valid
- All referenced
.stackfiles exist - Stack names are unique
- Output paths are writable
Error Handling
No Stack Files Found
hs create to start from a template.
Configuration Already Exists
--config to specify a different path.
Workflow
Typical workflow afterhs init:
Manual Configuration
Instead of usinghs init, you can manually create hyperstack.toml:
hyperstack.toml
Return Codes
0- Success1- Error (no stacks found, file I/O error, etc.)