Netlify CLI Automation for Openclaw

A powerful automation skill for managing Netlify site lifecycles, CI/CD pipelines, and monorepo deployments directly through the command line.

ajmwagar
v1.0.0
Feb 3, 2026
2
5.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install netlify

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install netlify using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Netlify CLI Automation?

This skill integrates the Netlify CLI to empower AI agents to create, link, and manage web projects programmatically. It is particularly optimized for complex monorepo structures where multiple static sites, such as those built with Hugo, coexist within a single repository. By leveraging Openclaw Skills, developers can automate the entire deployment pipeline from initial site creation to production releases.

The skill handles essential tasks like setting up build configurations via netlify.toml, managing sensitive environment variables, and establishing robust continuous integration hooks with GitHub. It transforms manual deployment steps into a streamlined, automated process that ensures consistency across different web properties, significantly reducing the overhead of managing large-scale web ecosystems.

Netlify CLI Automation Use Cases

  • Automating the creation of new Netlify sites for multiple domains within a monorepo.
  • Configuring continuous deployment (CI/CD) pipelines between GitHub and Netlify.
  • Managing site-specific environment variables for different deployment environments.
  • Programmatically generating netlify.toml configuration files for Hugo projects.
  • Executing manual draft or production deploys for quick previews and site updates.

How Netlify CLI Automation Works

  1. The AI agent checks the Netlify CLI installation and authentication status to ensure a secure connection.
  2. It navigates to the specific site directory (e.g., within a monorepo structure) to localize the build context.
  3. A Netlify site is created or linked to the local folder using site-specific metadata and account slugs.
  4. CI/CD integration is initialized to connect the local repository folder to the Netlify production environment via GitHub.
  5. Build settings and environment variables are applied to ensure the site compiles correctly in the cloud environment.
  6. The agent executes deployment commands to push the site live or create preview links for review.

Netlify CLI Automation Setup

Ensure the Netlify CLI is installed globally and you are authenticated before using this skill.

npm install netlify-cli -g
netlify login

Alternatively, you can provide a Netlify authentication token for non-interactive environments:

export NETLIFY_AUTH_TOKEN=your_token_here

Verify your status with Openclaw Skills by running:

netlify status
netlify sites:list

Netlify CLI Automation Data Schema & Taxonomy

The skill organizes deployment data by site-specific folders and configuration files to maintain environment isolation.

Component Description
netlify.toml Configuration file stored within the site's base directory defining build commands and publish folders.
Site Base Directory The subfolder (e.g., sites/example.com) where the site source code resides in a monorepo.
Environment Variables Key-value pairs managed in the Netlify cloud to handle secrets like API keys.
Team/Account Slug The identifier used to organize sites under a specific Netlify organizational account.

Netlify CLI Automation Advanced Features

  • Advanced monorepo support allowing multiple independent sites to share a single Git repository while maintaining unique deployment settings.
  • Automated generation of netlify.toml files optimized for Hugo static site generators using included helper scripts.
  • Support for non-interactive automation using environment-based authentication tokens for CI/CD pipelines.
  • Specialized site linking and creation workflows that include automated GitHub repository connection.
  • Capability to trigger draft deploys for testing and production deploys for live site updates via Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*