| name | netlify-deploy |
| description | Deploy and manage Netlify sites with npx netlify. Use for first deploys, preview deploys, production releases, site linking, authentication checks, and netlify.toml fixes. |
| description_zh | 使用 Netlify CLI 部署和管理静态网站 |
| description_en | Deploy and manage Netlify sites with preview and production releases |
| version | 1.0.0 |
| homepage | https://api.skillhub.cn/ivangdavila/netlify-deploy |
| allowed-tools | Bash,Read |
| metadata | {"clawdbot":{"emoji":"NET","requires":{"bins":"[Truncated]","config":"[Truncated]"},"os":["linux","darwin","win32"]}} |
Setup
On first use, read setup.md for integration and environment checks.
When to Use
User needs to deploy, host, publish, or relink a web project on Netlify from the terminal. Use this skill for first deploys, preview deploys, production pushes, monorepo paths, and netlify.toml fixes.
Architecture
Memory lives in ~/netlify-deploy/.
Use this local memory only for operational defaults so future deploy requests can start with the right safety assumptions.
~/netlify-deploy/
`- memory.md # Preferred deploy mode, default project path, and common build settings
See memory-template.md for setup.
Quick Reference
Load only the file needed for the current task to keep command decisions fast and avoid irrelevant context.
| Topic | File |
|---|
| Setup and integration flow | setup.md |
| Memory template | memory-template.md |
| CLI command map | cli-commands.md |
| Deployment scenarios | deployment-patterns.md |
| Configuration examples | netlify-toml.md |
Core Rules
1. Verify Auth and Site Link Before Any Deploy
npx netlify status
If not authenticated, run npx netlify login and re-check status. If authenticated but not linked, resolve linking before deploy.
2. Use Link-First, Init-Second
git remote get-url origin
npx netlify link --git-remote-url <remote-url>
If the repository is not linked or no matching site exists, fall back to npx netlify init.
3. Default to Preview Deploys Unless User Asks for Production
npx netlify deploy
Use npx netlify deploy --prod only when the user explicitly requests production or confirms readiness.
Never force production deploys as a shortcut when validation is still pending.
4. Confirm Build and Publish Paths Before First Production Deploy
npm run build
npx netlify deploy --=dist