تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

netlify

بواسطة ajmwagar

Data & Analytics
2.2kالتنزيلات وفق ما يذكره clawskills.sh
2النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Use the Netlify CLI (netlify) to create/link Netlify sites and set up CI/CD.

الوصف

ما الذي تفعله هذه المهارة

Automates Netlify site creation, linking, and GitHub CI/CD setup using the Netlify CLI. Built around a monorepo pattern where multiple sites live under one repository, each with its own base directory and netlify.toml. Covers environment variables, deploy previews, and production deploys.

The CLI workflow handles monorepo multi-site setups that the Netlify web UI makes awkward, letting each subdomain have its own base directory and build config without manual dashboard navigation.

متى تستخدمها

  • Deploying a new Hugo site from a monorepo subfolder
  • Connecting a GitHub repo to Netlify for automatic continuous deployment
  • Setting per-site environment variables from the command line
  • Running a draft deploy preview before pushing to production
  • Creating and linking multiple Netlify sites from a single repository

مثال على سير العمل

الإدخال

User asks: Deploy sites/floridacustomboatparts.com to Netlify with GitHub CI/CD

الوكيل
  1. 1

    Create sites/floridacustomboatparts.com/netlify.toml with Hugo build command and publish directory

  2. 2

    Run netlify sites:create --name florida-custom-boat-parts --account-slug <team> inside the subfolder

  3. 3

    Run netlify link to associate the local folder with the new site

  4. 4

    Run netlify init to connect the GitHub repo and configure continuous deployment

  5. 5

    Set required environment variables with netlify env:set

الإخراج

Netlify site created, linked to the GitHub repo subfolder, and configured for automatic deploys on push

المتطلبات

  • Netlify account
  • NETLIFY_AUTH_TOKEN environment variable (generated from Netlify user settings)
  • GitHub account (for CI/CD integration)

التثبيت

clawhub install ajmwagar/netlify

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط