Skip to content
/netlify-deployOfficial

Deploy web projects to Netlify with CLI-driven authentication, site linking, and preview/production deploys.

DevOpsDeploymentNetlifyΒ· 2 min read

Quick import: Download the .md file and save it to .claude/commands/ (Claude Code), .cursorrules (Cursor), or paste as a system prompt in ChatGPT, Gemini, or any LLM API.

#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

bash
$netlify-deploy
Deploy this project to Netlify and return the preview URL, build settings, and any required fixes.

#Workflow

  1. Verify authentication -- npx netlify status to check login
  2. Detect site link -- Determine if the project is already connected to Netlify
  3. Link or create site -- Link by Git remote or create a new site with npx netlify init
  4. Install dependencies -- Ensure project deps are installed before deploy
  5. Deploy -- Preview (npx netlify deploy) or production (npx netlify deploy --prod)
  6. Report results -- Deploy URL, site URL, deploy logs link, and next steps

#Authentication

bash
# 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 link or npx 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.

OpenAIΒ·
View all skills