WarpHost CLI
Deploy preview environments at warp speed.
Installation
npm install -g warphost
Or use directly with npx:
npx warphost deploy
Quick Start
warphost login
warphost deploy
warphost deploy --watch
warphost status <environment-id>
warphost logs <environment-id>
warphost destroy <environment-id>
Commands
login | Authenticate with WarpHost via GitHub |
logout | Clear stored credentials |
whoami | Show current user info and usage |
deploy | Deploy the current branch |
status | Check environment status |
logs | View deployment logs |
destroy | Destroy an environment |
Deploy Options
warphost deploy [options]
Options:
-b, --branch <branch> Branch to deploy (default: current branch)
-w, --watch Watch deployment progress
-e, --env <KEY=VALUE> Environment variables (can use multiple)
--ttl <hours> Time to live in hours
--subdomain <name> Custom subdomain (Pro+ only)
JSON Output
All commands support --json flag for scripting:
warphost status abc123 --json
Configuration
CLI configuration is stored in ~/.warphost/config.json:
Troubleshooting
"Not authenticated" error
Run warphost login to authenticate.
Token expired
Your session may have expired. Run warphost login to re-authenticate.
Browser doesn't open during login
Use the --no-browser flag and manually visit the URL:
warphost login --no-browser
Development
npm install
npm run build
npm link
npm run dev
Links
License
Proprietary. Copyright (c) 2025 WarpHost. All rights reserved.