netlify-deploy

Automate Netlify deployments with CLI authentication, site linking, and build detection.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of deploying web projects by automating Netlify CLI workflows including authentication checks, site linking or initialization, build detection, and preview or production publishing so users do not need to manually run and interpret multiple CLI steps.

Core Features & Use Cases

  • Authentication handling: Detects Netlify login status and guides browser-based OAuth or environment token authentication.
  • Site linking and creation: Attempts Git-remote based linking, falls back to interactive site initialization when needed.
  • Build detection and deployment: Infers build commands and publish directories from netlify.toml or package.json, installs dependencies, runs local builds, and performs preview or production deploys.
  • Troubleshooting and safety: Advises on common errors, publish directory issues, build failures, and when escalated network access is required for deployment.
  • Use case: From a local frontend repo, authenticate, link or create the Netlify site, run the build, and publish a preview deploy for testing before promoting to production.

Quick Start

Run the Netlify deployment workflow from the project root to authenticate or set an API token, link or initialize the site, build the project, and publish a preview or production deploy using 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 local frontend project to Netlify from the command line?

To deploy to Netlify, the workflow authenticates your account, links or initializes the site, detects build settings from package.json or netlify.toml, and publishes a preview or production deploy using the Netlify CLI via npx.

Do I need a netlify.toml file to automate a Netlify deployment?

You do not need a netlify.toml file to deploy. The deployment process can infer build commands and publish directories from a detectable package.json if the netlify.toml configuration is absent.

Can I use an environment token instead of browser OAuth for Netlify CLI authentication?

You can use a NETLIFY_AUTH_TOKEN environment variable for authentication instead of browser-based OAuth, allowing automated Netlify deployments in environments where interactive login is not possible.

How does site linking work when deploying to Netlify from an existing repository?

Site linking attempts to connect your local project to an existing Netlify site using Git remote information, falling back to interactive site initialization if Git-remote based linking is not available.

Why does my Netlify build fail during automated deployment?

Netlify build failures during deployment can occur due to missing dependencies, incorrect publish directories, or undetected build commands, which the workflow troubleshoots by advising on common errors and configuration issues.

What's the best way to publish a preview deployment to Netlify before production?

The best way to publish a preview deploy is to run the deployment workflow from your project root, which builds the project and publishes a preview deploy for testing before promoting to production.