TWHG CLI

Deploy static sites from your terminal in seconds.

Install with npm

$ npm install -g twhg

Recommended for most users.

Use with npx

$ npx twhg deploy ./my-site

No installation required.

Quick Start

# Install the CLI
$ npm install -g twhg

# Login to your account
$ twhg login

# Deploy your site
$ twhg deploy ./my-site

# That's it! Your site is live at:
# https://my-site.thatwebhostingguy.com

Features

Commands

twhg login Authenticate with your account
twhg deploy <dir> Deploy a directory as a static site
twhg sites List all your deployed sites
twhg rollback <site> Rollback to a previous version
twhg delete <site> Delete a deployed site
twhg whoami Show current logged in user

API Key Authentication

For CI/CD pipelines, use an API key instead of interactive login:

$ twhg login --api-key twhg_your_api_key_here

# Or set it as an environment variable
$ export TWHG_API_KEY=twhg_your_api_key_here
$ twhg deploy ./dist

Generate API keys in your account settings.

Create Free Account Read Documentation