netlify-cli-and-deploy

Manage Netlify CLI installs, site linking, and deployments.

32|7|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/netlify/context-and-tools --skill netlify-cli-and-deploy-netlify
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netlify-cli-and-deploy
Source: https://github.com/netlify/context-and-tools/tree/main/codex/skills/netlify-cli-and-deploy
Command: npx skills add https://github.com/netlify/context-and-tools --skill netlify-cli-and-deploy-netlify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a guided, repeatable workflow for using the Netlify CLI to install, link sites, and deploy projects in both Git-based and manual contexts, reducing setup time and human error.

Core Features & Use Cases

  • Install and manage the Netlify CLI globally or locally for project development.
  • Link existing Netlify sites or create new ones, enabling seamless deployment pipelines.
  • Deploy workflows: Git-based continuous deployment and manual/draft deployments.
  • Environment variable management across local and CI contexts with secure handling.
  • Local development support via netlify dev and optional integration with build tools.

Quick Start

Install the Netlify CLI globally or locally, link a site or initialize a new one, and then run netlify dev or netlify deploy to test and deploy.

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 local project to Netlify using the CLI?

To deploy using the Netlify CLI, install the package, link your local directory to a Netlify site, and run netlify deploy. This supports both Git-based continuous deployment and manual draft uploads.

Can I manage environment variables for local development with the Netlify CLI?

Yes, the Netlify CLI manages environment variables across local and CI contexts. It securely retrieves and applies variables during local development sessions and deployment workflows.

Do I need Node.js to run the Netlify CLI for site linking and deployment?

Running the Netlify CLI requires Node.js 18.14 or higher. You must install this runtime environment before linking sites, running local development servers, or executing deployment commands.

What is the best way to link an existing local directory to a Netlify site?

The best way to link a local directory to a Netlify site is using the Netlify CLI linking command. This connects your local project to your Netlify pipeline, enabling seamless Git-based or manual deployments.

How does netlify dev work for testing deployments locally?

Netlify dev runs a local development server simulating the Netlify platform environment. It lets you test build behaviors, environment variables, and deployment logic locally before pushing changes to production.

Git-based deployment vs manual deploy with Netlify CLI: which should I use?

Use Git-based deployment for continuous integration that auto-builds on repository changes, and manual deploy for direct terminal uploads or draft testing. The Netlify CLI supports both workflows depending on your pipeline needs.