Netlify CLI — Zero-Config Static & Next.js Deployment
Netlify is the fastest way to deploy frontend apps — works with Next.js, React, Vue, and more:
Project Setup:
```cmd
npm install -g netlify-cli
netlify login
netlify init
`
Deployment Workflow:
```cmd
npm run build # Build your app
netlify deploy --prod --dir out # Deploy to production
REM OR — Let Netlify handle the build:
netlify deploy --prod --build
`
netlify.toml (Config File):
```toml
[build]
command = "npm run build"
publish = "out"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
`
Preview Deploys:
```cmd
netlify deploy # Creates preview URL (not live)
netlify deploy --prod # Deploys to production URL
netlify open # Opens site in browser
`
Netlify auto-deploys from GitHub — perfect for continuous deployment! 🚀
