surge
Static web publishing. One command from a directory or HTML file to a live URL, with free custom domains and SSL.
Last updated a month ago by sintaxi .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install surge 
SYNC missed versions from official npm registry.

surge - static web publishing

One command from a directory, or a single HTML file, to a live URL. Free custom domains and SSL certificates on every plan, served from 10 regions, with over 18 million deployments published.

surge-help

Publish

npx surge <path> <domain>

surge ./dist lucid-example.surge.sh

Your project is now live in 10 regions globally! View it at https://lucid-example.surge.sh...

surge-publish-results

The first run asks for an email and password, which creates your account. To keep the command around, install it globally:

npm install -g surge

A single HTML file

surge page.html my-page.surge.sh

The file is published as the domain's index.html. If the page uses images or stylesheets next to it, surge lists them; publish the folder to include them.

Custom domains

Publish to any domain you own, then point its DNS at Surge. The certificate is provisioned for you, free.

surge ./dist example.com

See custom domains.

CI and agents

Mint a token on your own machine, then pass it with --token wherever surge runs. No login step, no prompts:

surge tokens add --domain example.com -m "ci"
npx surge ./dist example.com --token <token>

The SURGE_TOKEN environment variable works too, and keeps the token out of shell history and logs. A token can be scoped to one domain. Publishing has limits on every plan; a rate-limited publish answers with how long to wait. See CI & automation for GitHub Actions and other runners.

Documentation

surge.sh/docs covers publishing, revisions and rollbacks, collaborators, DNS, SSL, and the API, which can do everything the CLI does.

License

Copyright © 2012-2026 Chloi Inc. Released under the ISC License.

"Surge" is a trademark of Chloi Inc.

Current Tags

  • 0.55.0                                ...           latest (a month ago)

145 Versions

  • 0.55.0                                ...           a month ago
  • 0.54.0                                ...           a month ago
  • 0.53.0                                ...           a month ago
  • 0.52.6                                ...           a month ago
  • 0.52.5                                ...           a month ago
  • 0.52.4                                ...           a month ago
  • 0.52.3                                ...           a month ago
  • 0.52.2                                ...           a month ago
  • 0.52.1                                ...           a month ago
  • 0.52.0                                ...           a month ago
  • 0.51.0                                ...           a month ago
  • 0.50.0                                ...           a month ago
  • 0.49.0                                ...           a month ago
  • 0.48.0                                ...           a month ago
  • 0.47.0                                ...           a month ago
  • 0.46.0                                ...           a month ago
  • 0.45.0                                ...           a month ago
  • 0.44.7                                ...           a month ago
  • 0.44.6                                ...           a month ago
  • 0.44.5                                ...           2 months ago
  • 0.44.4                                ...           2 months ago
  • 0.44.3                                ...           2 months ago
  • 0.44.2                                ...           2 months ago
  • 0.44.1                                ...           3 months ago
  • 0.44.0                                ...           3 months ago
  • 0.43.1                                ...           3 months ago
  • 0.43.0                                ...           3 months ago
  • 0.42.1                                ...           3 months ago
  • 0.42.0                                ...           3 months ago
  • 0.41.3                                ...           3 months ago
  • 0.41.2                                ...           4 months ago
  • 0.41.1                                ...           4 months ago
  • 0.41.0                                ...           4 months ago
  • 0.40.2                                ...           4 months ago
  • 0.40.1                                ...           4 months ago
  • 0.40.0                                ...           4 months ago
  • 0.34.0                                ...           4 months ago
  • 0.33.0                                ...           4 months ago
  • 0.32.1                                ...           4 months ago
  • 0.32.0                                ...           4 months ago
  • 0.31.1                                ...           4 months ago
  • 0.31.0                                ...           5 months ago
  • 0.30.0                                ...           5 months ago
  • 0.29.0                                ...           5 months ago
  • 0.28.1                                ...           5 months ago
  • 0.28.0                                ...           5 months ago
  • 0.27.4                                ...           6 months ago
  • 0.27.3                                ...           9 months ago
  • 0.27.2                                ...           9 months ago
  • 0.27.1                                ...           9 months ago
  • 0.27.0                                ...           9 months ago
  • 0.26.0                                ...           9 months ago
  • 0.25.0                                ...           9 months ago
  • 0.24.7                                ...           9 months ago
  • 0.24.6                                ...           2 years ago
  • 0.24.5                                ...           2 years ago
  • 0.24.4                                ...           2 years ago
  • 0.24.3                                ...           2 years ago
  • 0.24.2                                ...           2 years ago
  • 0.24.1                                ...           2 years ago
  • 0.24.0                                ...           2 years ago
  • 0.24.0-rc.15                                ...           4 years ago
  • 0.24.0-rc.14                                ...           4 years ago
  • 0.24.0-rc.13                                ...           5 years ago
  • 0.23.1                                ...           5 years ago
  • 0.24.0-rc.12                                ...           5 years ago
  • 0.24.0-rc.11                                ...           5 years ago
  • 0.24.0-rc.10                                ...           6 years ago
  • 0.24.0-rc.9                                ...           6 years ago
  • 0.24.0-rc.8                                ...           6 years ago
  • 0.24.0-rc.7                                ...           6 years ago
  • 0.24.0-rc.6                                ...           6 years ago
  • 0.24.0-rc.5                                ...           6 years ago
  • 0.24.0-rc.4                                ...           6 years ago
  • 0.24.0-rc.3                                ...           6 years ago
  • 0.24.0-rc.2                                ...           6 years ago
  • 0.23.0                                ...           6 years ago
  • 0.24.0-rc.1                                ...           6 years ago
  • 0.23.0-rc.5                                ...           6 years ago
  • 0.23.0-rc.4                                ...           6 years ago
  • 0.23.0-rc.3                                ...           6 years ago
  • 0.23.0-rc.2                                ...           6 years ago
  • 0.22.1                                ...           6 years ago
  • 0.23.0-rc.1                                ...           6 years ago
  • 0.23.0-rc.0                                ...           6 years ago
  • 0.22.0                                ...           6 years ago
  • 0.21.7                                ...           6 years ago
  • 0.21.6                                ...           6 years ago
  • 0.21.5                                ...           6 years ago
  • 0.21.4                                ...           6 years ago
  • 0.21.3                                ...           7 years ago
  • 0.21.2                                ...           7 years ago
  • 0.21.1                                ...           7 years ago
  • 0.21.0                                ...           8 years ago
  • 0.20.5                                ...           8 years ago
  • 0.20.4                                ...           8 years ago
  • 0.20.3                                ...           8 years ago
  • 0.20.2                                ...           8 years ago
  • 0.20.1                                ...           9 years ago
  • 0.20.0                                ...           9 years ago
  • 0.19.0                                ...           10 years ago
  • 0.18.0                                ...           11 years ago
  • 0.17.7                                ...           11 years ago
  • 0.17.6                                ...           11 years ago
  • 0.17.5                                ...           11 years ago
  • 0.17.4                                ...           11 years ago
  • 0.17.3                                ...           11 years ago
  • 0.17.2                                ...           11 years ago
  • 0.17.1                                ...           11 years ago
  • 0.17.0                                ...           11 years ago
  • 0.16.0                                ...           11 years ago
  • 0.15.0                                ...           11 years ago
  • 0.14.4                                ...           11 years ago
  • 0.14.3                                ...           11 years ago
  • 0.14.2                                ...           11 years ago
  • 0.14.1                                ...           11 years ago
  • 0.14.0                                ...           11 years ago
  • 0.13.0                                ...           11 years ago
  • 0.12.0                                ...           12 years ago
  • 0.11.1                                ...           12 years ago
  • 0.11.0                                ...           12 years ago
  • 0.10.2                                ...           12 years ago
  • 0.10.1                                ...           12 years ago
  • 0.10.0                                ...           12 years ago
  • 0.9.0                                ...           12 years ago
  • 0.8.1                                ...           12 years ago
  • 0.8.0                                ...           12 years ago
  • 0.7.4                                ...           12 years ago
  • 0.7.3                                ...           12 years ago
  • 0.7.2                                ...           12 years ago
  • 0.7.1                                ...           12 years ago
  • 0.7.0                                ...           12 years ago
  • 0.6.0                                ...           12 years ago
  • 0.5.2                                ...           12 years ago
  • 0.5.1                                ...           12 years ago
  • 0.5.0                                ...           12 years ago
  • 0.4.1                                ...           12 years ago
  • 0.4.0                                ...           12 years ago
  • 0.3.3                                ...           12 years ago
  • 0.3.2                                ...           12 years ago
  • 0.3.1                                ...           12 years ago
  • 0.3.0                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
  • 0.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 580
Today 0
This Week 31
This Month 358
Last Day 2
Last Week 15
Last Month 72
Dependencies (17)
Dev Dependencies (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE