netlify-deploy

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

1|Updated May 13, 2026
One-click install
npx skills add https://github.com/SyedArmanAli2003/AgroNaV --skill netlify-deploy-syedarmanali2003
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netlify-deploy
Source: https://github.com/SyedArmanAli2003/AgroNaV/tree/main/.agents/skills/netlify-deploy
Command: npx skills add https://github.com/SyedArmanAli2003/AgroNaV --skill netlify-deploy-syedarmanali2003

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Deploying web projects to Netlify involves multiple manual steps—authenticating the CLI, linking or creating 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, links projects to existing sites via Git remote, or creates new sites with netlify init. - Preview and Production Deploys: Runs draft deploys for testing changes, then promotes to production with netlify deploy --prod. - Framework-Aware Configuration: Detects frameworks like Next.js, Vite, and Astro to suggest correct build commands and publish directories in netlify.toml. - Use Case: You have a React app built with Vite that has never been deployed. The Skill authenticates the CLI, initializes a new Netlify site, installs dependencies, and deploys to production with the correct dist publish directory. ## Quick Start Deploy my current web project to Netlify as a preview deploy so I can test it before going live.

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 using your netlify.toml settings and uploads the output, returning a deployment 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 that fails because no matching site exists, run npx netlify init to create and link a new site interactively.

Can I deploy to Netlify without installing the CLI globally?

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

Why did my Netlify deploy fail during the build step?

Build failures usually come from a wrong build command or publish directory in netlify.toml, a missing dependency, or a function bundling error. Check the deploy log URL printed by the CLI, fix the cause, and redeploy—a failed deploy never overwrites the live site.

What publish directory should I use for Vite or Next.js on Netlify?

Vite projects publish the dist directory with build command npm run build. Next.js projects publish the .next directory. Set these in netlify.toml under the [build] section so the CLI uses them automatically.

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.