#What it does
The netlify-deploy skill deploys web projects to Netlify using the Netlify CLI. It handles authentication verification, project configuration detection, framework-aware build settings, site linking or creation, and both preview and production deployments.
#How to use
$netlify-deployDeploy this project to Netlify and return the preview URL, build settings, and any required fixes.
#Workflow
- Verify authentication --
npx netlify statusto check login - Detect site link -- Determine if the project is already connected to Netlify
- Link or create site -- Link by Git remote or create a new site with
npx netlify init - Install dependencies -- Ensure project deps are installed before deploy
- Deploy -- Preview (
npx netlify deploy) or production (npx netlify deploy --prod) - Report results -- Deploy URL, site URL, deploy logs link, and next steps
#Authentication
# Check authentication
npx netlify status
# Browser-based OAuth (primary)
npx netlify login
# API Key alternative
export NETLIFY_AUTH_TOKEN=your_token_here#Framework defaults
| Framework | Build command | Publish directory |
|-----------|--------------|-------------------|
| Next.js | npm run build | .next |
| React (Vite) | npm run build | dist |
| Static HTML | none | current directory |
#Common fixes
- "Not logged in" -- Run
npx netlify login - "No site linked" -- Run
npx netlify linkornpx netlify init - "Build failed" -- Check build command and publish directory
- "Publish directory not found" -- Verify build ran successfully
This skill is from the OpenAI Skills Catalog.