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

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:

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.