Deploy static sites instantly from your terminal.
Bantam is the fastest way to deploy static sites. No config files, no complex setup - just deploy and share. Perfect for prototypes, documentation, or any static content.
npm install -g @bantamhq/cli
Or use without installing:
npx @bantamhq/cli deploy
Deploy your current directory:
bantam deploy
That's it. Your site is live.
- Instant deployments - Live URLs in seconds
- Custom domains - Use your own domain
- Zero configuration - Works out of the box
- Permanent hosting - Keep projects online forever
- Directory support - Auto-zips and deploys folders
Deploy a file or directory.
# Deploy current directory
bantam deploy
# Deploy specific folder
bantam deploy ./dist
# Deploy with custom subdomain
bantam deploy -s my-project
# Deploy to custom domain
bantam deploy -d example.com
Options:
-
-s, --subdomain <name>
- Choose subdomain (my-project.bantam.site) -
-d, --domain <domain>
- Deploy to custom domain -
-p, --permanent
- Never expires (requires login) -
-e, --expiry-days <days>
- Set expiration (default: 30 days) -
-y, --yes
- Skip confirmation
Authenticate to unlock features:
- Permanent deployments
- Custom domains
- Project management
bantam login
View your deployments.
# Show all projects
bantam list
# Show with details
bantam list --long
Remove a deployment.
bantam delete 7c3d6f2a-8b9e-4f5d-a1c3-9e8f7d6c5a4b
Manage custom domains.
# List domains
bantam domains
# Show details
bantam domains --verbose
Deploy to your own domain:
- Add your domain at bantam.host/domains
- Complete DNS verification
- Deploy:
bantam deploy -d yourdomain.com
With wildcard DNS enabled:
bantam deploy -d app.yourdomain.com
bantam deploy -d staging.yourdomain.com
cd my-react-app
npm run build
bantam deploy ./build -p
bantam deploy ./docs -s my-docs -p
# Temporary link for 7 days
bantam deploy -e 7
Create a personal access token:
- Sign up at bantam.host
- Generate token in dashboard
- Run
bantam login
- Paste your token
- Free tier: 1 Permanent URL (must log in to bantam.host every 90 days) plus 2 temporary URLs up to 3 days expiry.
- Paid plans: Permanent hosting, custom domains, analytics
See bantam.host/#pricing for details.
- Node.js 16 or later
- npm or yarn
- Documentation: bantam.host/docs
- Issues: GitHub Issues
- Email: support@bantam.host
MIT - see LICENSE for details.
Built with ❤️ by the Bantam team.