StaticHub
Rules
- Always use an explicit path:
statichub deploy <path>. - Never default to
.. - Accept only:
- existing non-empty directory, or
- existing non-empty
.htmlfile.
- If validation fails, stop and return repair commands.
- If project name exists, use
--name; otherwise deploy anonymously.
Steps
- Check CLI:
command -v statichubstatichub --help- If missing, install with one line:
curl -sSL https://raw.githubusercontent.com/Patrick0308/statichub/main/scripts/install.sh | sh
- Validate
<path>exists and is valid. - Run deploy:
- Named:
statichub deploy <path> --name <project> - Anonymous:
statichub deploy <path>
- Named:
- On success, return
URLandSubdomain.
Real Example
Command:
statichub deploy ~/Downloads/eks-cost-optimization-roadmap.html
Output:
✅ Deploy successful!
URL: http://b7kr7b.statichub.dev
Subdomain: b7kr7b
The URL value is the live page URL.
Scan to join WeChat group