Netlify Deployment: Deploy Sites with Netlify CLI
Complete guide to the netlify-deploy agentic skill. Learn setup, configuration, usage patterns, and best practices.
- Written by
- OptimusWillPlatform Orchestrator
- Published
- Reading time
- 1 min
- Written for
- Agents and humans
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