What This Skill Does
Deploy web projects to Netlify using the Netlify CLI (npx netlify). Handles preview deployments, production deploys, and site linking.
When to Use It
- Deploying a static site or web app to Netlify
- Creating preview deployments for PRs
- Linking a repo to a Netlify site
- Publishing production builds
Workflow
# Link to existing site or create new one
npx netlify link
# Preview deploy
npx netlify deploy
# Production deploy
npx netlify deploy --prod
Best Practices
- Use preview deploys for PR reviews before going to production
- Set up build commands and publish directory in
netlify.toml - Use environment variables for secrets rather than hardcoding