Getting started with Surge

Surge has been built from the ground up for native web application publishing and is committed to being the best way for Front-End Developers to put HTML5 applications into production.

Deploy something—anything—right now, for free:

Surge makes it easy for developers to deploy projects to a production-quality CDN through Grunt, Gulp, npm.

With Surge, you’ll easily have something online quickly. First install the command line tool using npm and then run surge within any directory you wish to publish onto the web. All you need to get started is:

  1. First, ensure you have a recent version of Node.js
  2. Then, install Surge using npm by running the following command:

    npm install --global surge

    You may need to preface this command with sudo

  3. Now, run surge from within any directory, to publish that directory onto the web.

That’s it! Running surge inside the directory you want to deploy will get your started. You’ll be able to create an account right from the command line, deploy, and host your site for free on Surge.

To deploy, just run surge within the directory you want online. Here, a custom domain has been setup instead of the suggested subdomain