Netlify Deploy
Intent
- Use for Netlify site linking, preview deploys, production deploys, and
netlify.toml-aware deployment setup.
Default operating pattern
- Check
npx netlify statusfirst to confirm CLI access, login state, and whether the current repo is already linked. - If the repo is not linked, inspect the Git remote before choosing between
npx netlify link --git-remote-url <remote>andnpx netlify init. - Inspect
package.json,netlify.toml, and the detected package manager before installing dependencies or guessing build settings. - Default to
npx netlify deployfor a preview URL; only usenpx netlify deploy --prodwhen the user explicitly asks for production. - Return the deploy URL, the site URL if available, and any remaining manual steps such as setting environment variables in the Netlify dashboard.
Pack fit
- Included in:
deploy-ops - Keep instructions CLI-first, host-agnostic, and reusable across modern web projects.
Boundary
- Do not claim the deploy succeeded unless the CLI returns a success result or URL.
- Do not invent build commands, publish directories, or site settings when the project config is ambiguous.