Static web publishing CLI tool for deploying web applications to a CDN with a single command
—
Account and billing management including plan upgrades, payment methods, subscription management, and account deletion.
Upgrade or downgrade account plans to access different feature sets and resource limits.
/**
* Upgrade or downgrade account plan
* @param hooks - Optional lifecycle hooks
* @returns Command function
*/
function plan(hooks?: HookConfig): CommandFunction;CLI Usage:
# View available plans
surge plan
# Select specific plan
surge plan professional
# Interactive plan selection
surge plan --interactiveAvailable Plans:
Library Usage:
surge.plan({})(process.argv.slice(2));Manage payment methods and billing information for account subscriptions.
/**
* Manage payment methods and billing information
* @param hooks - Optional lifecycle hooks
* @returns Command function
*/
function card(hooks?: HookConfig): CommandFunction;CLI Usage:
# Add or update payment method
surge card
# View current payment method
surge card --show
# Remove payment method
surge card --removePayment Features:
Library Usage:
surge.card({})(process.argv.slice(2));Enable Surge Plus plan features for specific domains.
/**
* Enable Surge Plus plan features for domain
* @param hooks - Optional lifecycle hooks
* @returns Command function
*/
function plus(hooks?: HookConfig): CommandFunction;CLI Usage:
# Enable Plus features for domain
surge plus example.com
# Interactive domain selection
surge plusPlus Features:
Library Usage:
surge.plus({})(process.argv.slice(2));Permanently delete account and all associated data.
/**
* Permanently delete account and all data
* @param hooks - Optional lifecycle hooks
* @returns Command function
*/
function nuke(hooks?: HookConfig): CommandFunction;CLI Usage:
# Delete account (requires confirmation)
surge nuke⚠️ Warning: This action is irreversible and will:
Library Usage:
surge.nuke({})(process.argv.slice(2));| Feature | Free | Professional | Plus | Enterprise |
|---|---|---|---|---|
| Projects | 1 | Unlimited | Unlimited | Unlimited |
| Custom Domains | ❌ | ✅ | ✅ | ✅ |
| SSL Certificates | surge.sh only | ✅ | ✅ | ✅ |
| Bandwidth | 1GB/month | 100GB/month | 1TB/month | Custom |
| Storage | 100MB | 1GB | 10GB | Custom |
| Analytics | Basic | Advanced | Advanced | Custom |
| Support | Community | Priority | Dedicated |
Monthly Billing:
Annual Billing:
Monitor account usage and limits:
# View current usage
surge usage
# Check plan limits
surge plan --limits
# Usage alerts
surge config --usage-alerts 80%Credit/Debit Cards:
Alternative Payment Methods:
Payment Security:
Account Security:
Invoice Access:
# Download invoices
surge card --invoices
# View billing history
surge card --history
# Update billing address
surge card --addressAutomatic Renewal:
Enterprise plans include:
# Configure enterprise settings
surge config --enterprise
# Set custom limits
surge config --bandwidth-limit 10TB
surge config --storage-limit 100GB
# Configure dedicated support
surge config --support-tier dedicatedTwo-Factor Authentication:
# Enable 2FA
surge config --2fa enable
# Generate backup codes
surge config --2fa backup-codes
# Disable 2FA
surge config --2fa disableAPI Token Management:
# Generate new API token
surge token --generate
# Revoke API token
surge token --revoke TOKEN_ID
# List active tokens
surge token --listAccount Permissions:
IP Restrictions:
# Restrict access by IP
surge config --ip-whitelist 192.168.1.0/24
# Remove IP restrictions
surge config --ip-whitelist removeExport account data for backup or migration:
# Export all project data
surge export --format json
# Export specific project
surge export example.surge.sh --format tar.gz
# Export analytics data
surge analytics example.surge.sh --exportProject Data:
Analytics Data:
Data Rights:
# Request data export (GDPR)
surge gdpr --export
# Delete personal data (GDPR)
surge gdpr --deleteFailed Payments:
Billing Disputes:
# Contact billing support
surge support --billing
# Request refund
surge card --refund REQUEST_ID
# Dispute charge
surge card --dispute CHARGE_IDLocked Account:
Lost Credentials:
# Reset password
surge login --reset-password
# Generate new API token
surge token --regenerate
# Recovery via support
surge support --account-recoveryPlan Changes:
Cancellation:
# Cancel subscription
surge plan --cancel
# Downgrade to free plan
surge plan free
# Export data before cancellation
surge export --allInstall with Tessl CLI
npx tessl i tessl/npm-surge