@bantamhq/cli

0.1.5 • Public • Published

Bantam CLI

Deploy static sites instantly from your terminal.

npm version License

What is Bantam?

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.

Installation

npm install -g @bantamhq/cli

Or use without installing:

npx @bantamhq/cli deploy

Quick Start

Deploy your current directory:

bantam deploy

That's it. Your site is live.

Features

  • 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

Commands

bantam deploy [path]

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

bantam login

Authenticate to unlock features:

  • Permanent deployments
  • Custom domains
  • Project management
bantam login

bantam list

View your deployments.

# Show all projects
bantam list

# Show with details
bantam list --long

bantam delete <id>

Remove a deployment.

bantam delete 7c3d6f2a-8b9e-4f5d-a1c3-9e8f7d6c5a4b

bantam domains

Manage custom domains.

# List domains
bantam domains

# Show details
bantam domains --verbose

Custom Domains

Deploy to your own domain:

  1. Add your domain at bantam.host/domains
  2. Complete DNS verification
  3. Deploy:
    bantam deploy -d yourdomain.com

Subdomain Support

With wildcard DNS enabled:

bantam deploy -d app.yourdomain.com
bantam deploy -d staging.yourdomain.com

Examples

Deploy a React Build

cd my-react-app
npm run build
bantam deploy ./build -p

Deploy Documentation

bantam deploy ./docs -s my-docs -p

Quick Share

# Temporary link for 7 days
bantam deploy -e 7

Authentication

Create a personal access token:

  1. Sign up at bantam.host
  2. Generate token in dashboard
  3. Run bantam login
  4. Paste your token

Pricing

  • 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.

Requirements

  • Node.js 16 or later
  • npm or yarn

Support

License

MIT - see LICENSE for details.


Built with ❤️ by the Bantam team.

Package Sidebar

Install

npm i @bantamhq/cli

Weekly Downloads

9

Version

0.1.5

License

MIT

Unpacked Size

45.4 kB

Total Files

6

Last publish

Collaborators

  • ryanchm