netlify-deploy

Deploy and publish web projects on Netlify using the Netlify CLI.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/JamesMitofsky/tag-archive --skill netlify-deploy-jamesmitofsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: netlify-deploy
Source: https://github.com/JamesMitofsky/tag-archive/tree/main/.claude/skills/netlify-deploy
Command: npx skills add https://github.com/JamesMitofsky/tag-archive --skill netlify-deploy-jamesmitofsky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires netlify-cli, and includes references (resource) components.

What problem does it solve? Getting a web project live on Netlify involves linking sites, choosing between Git-based continuous deployment and manual CLI uploads, configuring build settings, and diagnosing failed deploys — this Skill guides the entire workflow with the Netlify CLI. ## Core Features & Use Cases - Site Linking and Setup: Link a local project to an existing Netlify site or create a new one with netlify link and netlify init, including CI authentication via NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID. - Git-Based and Manual Deploys: Set up continuous deployment from Git pushes and pull-request previews, or ship draft and production deploys directly with netlify deploy --prod. - Deploy Troubleshooting and Logs: Diagnose failed builds, secrets-scanning failures, and publish-directory errors, and inspect runtime output with netlify logs for functions and edge functions. - Use Case: You have a static site in a Git repository and want it live. Run netlify init to connect Git-based deployment, push to your production branch, and Netlify builds and publishes automatically on every commit. ## Quick Start Deploy my project to Netlify by linking this directory to a site and running a production deploy with the Netlify CLI.

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 site to Netlify from the command line?

Install the Netlify CLI with npm install -g netlify-cli, authenticate with netlify login, link your project with netlify link, then run netlify deploy for a draft preview or netlify deploy --prod for production. Use --dir to specify the build output directory.

How do I set up Netlify continuous deployment from Git?

Run netlify init to create or link a site and connect it to your Git repository. After that, pushes to the production branch trigger production deploys, and pull requests generate deploy previews automatically.

Why does my Netlify deploy fail in CI but work locally?

CI environments lack the linked .netlify/state.json file created by netlify link. Set both NETLIFY_AUTH_TOKEN for authentication and NETLIFY_SITE_ID to target the correct site, otherwise the deploy has no site to publish to.

Does a failed Netlify deploy take my site down?

No. A failed deploy never publishes, so the site keeps serving the last successful deploy. Read the deploy log for the exact error, fix the underlying cause such as the build command or publish directory, and redeploy.

Why does Netlify fail my deploy after a successful build?

Netlify scans build output for secret values after the build succeeds and fails the deploy if it finds one. Remove real secrets from published files, or scope exceptions with SECRETS_SCAN_OMIT_KEYS or SECRETS_SCAN_OMIT_PATHS for legitimately public values.

How do I view Netlify function logs from the CLI?

Run netlify logs to see recent function and edge-function logs from roughly the last 10 minutes. Add --follow to stream live, --source functions --function NAME for one function, or --since 24h for a longer window.