Deploy static sites for free using Surge

08 August 2016 on coding. Reading duration: 1 minute

Surge is a static web publishing tool for the command line. It’s the most simple and easy way to deploy a static site that I’ve ever seen!.

Surge is free and includes a lot of cool features out of the box. Just with a single command you will get your site deployed.

What do you need?

  • NodeJS & NPM
  • Surge (obviously)

Getting started

To install Surge, just run:

$ npm i -g surge

After that, you need to register for your account.
If you’re already logged in, you can easily deploy static sites using Surge.

$ surge login

$ surge

You’ll be asked for the path or folder you want to deploy and the domain for the project.
You can also use a costum domain instead of a sub-domain

If you accidently typed a wrong domain name, you can easily change it as I did above.

Use the list command to get a to see every project you’ve published on Surge.
To delete a site on Surge just run teardown

$ surge list

$ surge teardown


Hello World. Again.

Oh my god, are we actually doing this, again? I think I had like four or five blogs before I started this blog, I ended up doesn’t write anymore because I thought I could write coding tutorial every fucking post. Well, I finally realize I’m just shit at writing about how to code and things like that, I’m just not good at explaining it. Since then I’ve decided that I would write other things that I enjoy writing. — So don’t get suprised when I write something random😂