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)
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