netlify-deploy

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

Updated Sep 15, 2026
One-click install
npx skills add https://github.com/Peterson-Benhame/agent-skills --skill netlify-deploy-peterson-benhame
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netlify-deploy
Source: https://github.com/Peterson-Benhame/agent-skills/tree/main/packages/skills-catalog/skills/%28cloud%29/netlify-deploy
Command: npx skills add https://github.com/Peterson-Benhame/agent-skills --skill netlify-deploy-peterson-benhame

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Manually deploying web projects to Netlify involves repetitive CLI steps: checking authentication, linking sites, configuring build settings, and choosing between preview and production deploys. This Skill automates that entire workflow so deployments happen correctly on the first attempt. ## Core Features & Use Cases - Authentication & Site Linking: Verifies Netlify CLI login status, guides OAuth or token-based authentication, and links projects to existing sites via Git remote or creates new ones with netlify init. - Preview and Production Deploys: Runs netlify deploy for draft previews and netlify deploy --prod for live releases, with framework-aware build detection for Next.js, Vite, Astro, and static sites. - Configuration Guidance: Provides netlify.toml references covering build commands, publish directories, redirects, headers, and environment variables. - Use Case: You finish a React feature branch and want a shareable preview URL. The Skill checks your login, links the repo, installs dependencies, and returns a draft deploy URL for review before promoting to production. ## Quick Start Deploy my current project to Netlify as a preview and give me the draft URL.

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 draft or npx netlify deploy --prod for production. The CLI builds the project locally using your netlify.toml settings and uploads the output, returning a deploy URL.

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

Run 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 work without a global install?

Yes, the Netlify CLI runs through npx without any global installation. Commands like npx netlify status, login, and deploy work directly in any project directory.

Why does my Netlify deploy fail with publish directory not found?

This error means the build command did not produce the expected output folder. Run your build locally, confirm the output directory name such as dist or .next, and update the publish setting in netlify.toml.

How do I set environment variables for Netlify builds?

Set variables with npx netlify env:set KEY value or through the Netlify dashboard under Site Settings. Access them in code via process.env.VARIABLE_NAME, and never commit secrets to Git.