netlify-deploy

Deploy web projects to Netlify using the Netlify CLI with authentication and site linking.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/pchemguy/AISandbox --skill netlify-deploy-pchemguy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: netlify-deploy
Source: https://github.com/pchemguy/AISandbox/tree/main/docs/AgentSkills/openai/skills/skills/.curated/netlify-deploy
Command: npx skills add https://github.com/pchemguy/AISandbox --skill netlify-deploy-pchemguy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Deploying a web project to Netlify involves multiple manual steps—authenticating the CLI, linking or creating a site, configuring build settings, and choosing between preview and production deploys. This Skill automates that entire workflow so a single request results in a live deployment URL. ## Core Features & Use Cases - Authentication & Site Linking: Verifies Netlify CLI login status, guides OAuth or token-based login, and links projects to existing sites via Git remote or creates new sites with netlify init. - Preview and Production Deploys: Runs netlify deploy for draft preview URLs or netlify deploy --prod for live production releases, with framework-aware build detection (Next.js, Vite, static HTML). - Configuration Guidance: Provides references for CLI commands, deployment patterns, and netlify.toml settings including redirects, headers, and environment variables. - Use Case: You finish a React app locally and ask the agent to publish it. The Skill checks authentication, links the repo to Netlify, installs dependencies, deploys a preview for testing, and then promotes it to production with a live URL. ## Quick Start Deploy this project to Netlify and return the preview URL, build settings, and any required fixes.

Frequently Asked Questions about netlify-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a website to Netlify from the command line?▼

Run npx netlify deploy for a preview deploy or npx netlify deploy --prod for production. The CLI builds the project locally, uploads the assets, and returns a deployment URL. Ensure you are logged in with npx netlify login first.

How do I link a local project to an existing Netlify site?▼

Use npx netlify link --git-remote-url with your repository URL to link by Git remote. If no matching site exists, run npx netlify init to create and configure a new site interactively.

Does Netlify CLI support Next.js and Vite projects?▼

Yes, the Netlify CLI auto-detects common frameworks. Next.js builds to the .next directory and Vite builds to dist; you can confirm or override these settings in a netlify.toml file with build command and publish directory.

Why does my Netlify deploy fail with network errors?▼

Sandboxed environments may block outbound network calls needed for deployment. Rerun the deploy command with escalated permissions (sandbox_permissions=require_escalated) so the CLI can reach Netlify servers.

How do I set environment variables for a Netlify site?▼

Set variables with npx netlify env:set KEY value or through the Netlify dashboard under Site Settings. Never commit secrets to Git; access them in builds via process.env.VARIABLE_NAME.