Dev Resources
Surge favicon

Surge

Hosting

Shipping web projects should be fast, easy, and low risk. Surge is static web publishing for Front-End Developers, right from the CLI.

Surge's website screenshot

About Surge

Surge is a command-line tool for publishing static web content — HTML, CSS, and JavaScript — to a CDN. Deployment is done by running a single command from a project directory, which uploads the project and makes it available at a generated *.surge.sh subdomain. It supports pushState for single-page applications and custom 404 pages.

The tool integrates with front-end build workflows including Grunt (via a grunt-surge plugin), Gulp, npm run scripts, and Node.js projects generally, and can be used alongside CI services such as Travis CI, CircleCI, and Codeship for automated deployment. It also works with static site generators and tools like Jekyll, where sites are compiled locally and then published to Surge. Custom domains can be added via CNAME.

Surge supports team collaboration by allowing collaborators to be added to a project through the CLI, so multiple users can deploy to the same domain. Publishing to a surge.sh subdomain, including free SSL for those subdomains, is offered at no cost. It is intended for front-end developers deploying static sites or client-side applications.

Key features

  • Single-command static site publishing from the command line
  • Free custom domain support with CNAME setup
  • Free SSL for surge.sh subdomains
  • Deploy through Grunt, Gulp, or npm run scripts
  • Team collaborator support via the CLI
  • pushState support for single-page apps and custom 404.html pages

Frequently asked questions

Is Surge free to use?

Yes, Surge lets you publish HTML, CSS, and JS projects for free from the command line.

What build tools does Surge integrate with?

Surge integrates with Grunt and Gulp plugins, npm run scripts, Jekyll, Node.js, and CI services like Travis CI, CircleCI, and Codeship.

Can I use a custom domain with Surge?

Yes, you can deploy to any custom domain for free by adding a CNAME.

Who is Surge designed for?

Surge is designed for front-end developers who want to deploy static sites or client-side apps quickly without leaving the command line.

How do I install Surge?

Install it globally with npm install --global surge.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product