Deploy Static Websites to Netlify via Cli Without Github (Manual)

December 9, 2019

Install netlify cli

npm install netlify-cli -g

Login or create new account

netlify login

Create new site

netlify sites:create --name my-static-website

NOTE: netlify sites:list - list all sites

Deploy

netlify deploy

NOTE: netlify deploy --prod - deploy to production

NOTE: netlify deploy --dir=dist - deploy specific directory

NOTE: netlify deploy --site=56207eff-c974-4b78-8333-625a506acafe - deploy to specific site, use netlify sites:list to get site id

NOTE: Netlify url is not case sensitives - forced lowercase.

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.