netlify-cli-and-deploy

Automate Netlify CLI setup, authentication, site linking, and deployment workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/MichaelFrieze/riffatlas --skill netlify-cli-and-deploy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netlify-cli-and-deploy
Source: https://github.com/MichaelFrieze/riffatlas/tree/main/.agents/skills/netlify-cli-and-deploy
Command: npx skills add https://github.com/MichaelFrieze/riffatlas --skill netlify-cli-and-deploy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of reliably installing, authenticating, linking, and deploying a site to Netlify without getting stuck on CLI workflow details or environment variable setup.

Core Features & Use Cases

  • Install and Authenticate: Set up the Netlify CLI globally or in CI and manage login status with netlify login and netlify status, using NETLIFY_AUTH_TOKEN for non-interactive environments.
  • Link and Initialize a Site: Connect a project to an existing Netlify site, create new sites, and configure Git-based or manual workflows via netlify link and netlify init.
  • Build and Deploy Across Modes: Run local development with netlify dev (or use the Netlify Vite plugin) and perform deploys using netlify deploy for previews, --prod for production, or --dir for prebuilt outputs, while managing environment variables with netlify env:* including secret and context scoping.

Quick Start

Use the skill to link your repository to Netlify, configure required environment variables, then run a local dev server and publish a production 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 site to Netlify using the CLI?

To deploy a site to Netlify, use the CLI to install the tool, authenticate via `netlify login`, link the project with `netlify link`, and run `netlify deploy`. Use `--prod` for production releases or `--dir` to specify a prebuilt output directory.

How do I configure environment variables for Netlify deployment in CI?

Configure environment variables for Netlify deployment using `netlify env:*` commands to manage secrets and context scoping. In non-interactive CI environments, authenticate securely by setting the `NETLIFY_AUTH_TOKEN` environment variable instead of using interactive login.

Can I use Netlify CLI for local development with Vite?

Yes, you can use Netlify CLI for local development with Vite by running `netlify dev` or integrating the Netlify Vite plugin. This allows you to test build and deployment workflows locally before pushing changes to production.

What is the difference between Git-based continuous deployment and manual Netlify CLI deploys?

Git-based continuous deployment automatically triggers builds when you push code to a linked repository, while manual Netlify CLI deploys use `netlify deploy` to directly push prebuilt output directories or run ad-hoc previews without depending on Git.

Do I need Node.js to use the Netlify CLI for site deployment?

Yes, Node.js is required to install and use the Netlify CLI for site deployment. You must have Node.js set up in your local or CI environment to run installation, authentication, linking, and build execution commands.

Why is my Netlify CLI deployment not working in CI?

Netlify CLI deployment in CI often fails due to incorrect authentication or missing environment variables. Ensure `NETLIFY_AUTH_TOKEN` is set, Node.js is installed, and context-scoped environment variables are properly configured using `netlify env:*` commands.