netlify-cli-and-deploy

Deploys sites and manages environment variables using the Netlify CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires netlify-cli, @netlify/vite-plugin.

What problem does it solve? It removes the guesswork from deploying sites to Netlify by providing exact CLI commands for installation, authentication, site linking, deployment, and environment variable management across Git-based and manual workflows. ## Core Features & Use Cases - Site Deployment: Run Git-based continuous deploys or manual local deploys with netlify deploy and netlify deploy --prod. - Local Development: Start a dev server with netlify dev or integrate the Netlify Vite plugin for framework-native development with Functions, Blobs, and environment variables. - Environment Variable Management: Set, list, import, and scope variables per deploy context (production, deploy-preview, branch) via netlify env commands. - Use Case: You have a Vite React app ready to ship. Use this Skill to link the project, set production environment variables, and trigger a production deploy without touching the Netlify dashboard. ## Quick Start Ask the assistant to link this project to a Netlify site and run a production deploy using the Netlify CLI.

Frequently Asked Questions about netlify-cli-and-deploy

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

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

Run netlify deploy for a draft deploy with a preview URL, or netlify deploy --prod for a production deploy. Use --dir to specify the output directory, and this works without Git for local-only projects.

How do I set environment variables with the Netlify CLI?

Use netlify env:set KEY "value" to create variables, with --secret to hide them from logs or --context to scope them to production, deploy-preview, or a specific branch. List them with netlify env:list or import from a file with netlify env:import .env.

What is the difference between netlify dev and the Netlify Vite plugin?

netlify dev wraps your framework's dev server and injects environment variables, functions, and redirects. The Vite plugin (@netlify/vite-plugin) integrates Netlify primitives directly into Vite's dev server, so you run your normal npm run dev command.

Can I use the Netlify CLI in CI without interactive login?

Yes, set the NETLIFY_AUTH_TOKEN environment variable instead of running netlify login. Install the CLI locally with npm install netlify-cli -D so CI pipelines can run deploy commands non-interactively.

Why are my secrets exposed in the browser on Netlify?

Variables prefixed with VITE_ or PUBLIC_ are bundled into client-side code and visible to browsers. Never use these prefixes for secrets; access sensitive values server-side in Functions via Netlify.env.get or process.env.