El catálogo/Netlify

Netlify

app.netlify

Deploy static sites to Netlify from the workspace

Clave de APIdevelopmentLeer el código↗
Versión2.0.0
Categoríadevelopment
AutenticaciónClave de API
Herramientas3
Transportestdio
LicenciaMIT
01

Qué hace

La aplicación, en sus propias palabras.

Deploy static sites (HTML/CSS/JS) from the workspace to Netlify and return the public URL. Uses the file-digest REST API with a per-user Personal Access Token.

netlifydeploystatic sitehostingcdnweb
02

Herramientas

3 herramientas que el agente puede llamar.

Todas se declaran con parámetros tipados y devuelven resultados estructurados, así que el anfitrión puede renderizarlas en vez de narrarlas.

  • deploy-siteDeploy a static site (HTML/CSS/JS) from a workspace directory to Netlify and return the public URL. WARNING: every file under `dir` becomes PUBLICLY readable on the internet — never deploy a directory that contains secrets (.env), credentials, or private data. Pass siteId or siteName to deploy to an existing site; omit both to create a new site. Deploying the whole workspace root is refused unless allowWorkspaceRoot is true. Returns { url, deployId, state, siteId }.
  • get-deploy-statusGet the current state of a Netlify deploy. Returns { state, url, errorMessage? }.
  • list-sitesList the Netlify sites reachable with the configured token. Returns { sites: [{ id, name, url, ssl_url }] }.
03

Autenticación y permisos

Qué pide.

Declarado en el manifiesto y por adelantado. La aplicación no puede alcanzar nada que no haya pedido aquí.

Secretos de usuario

NETLIFY_TOKEN

Seguir leyendo

El manifiesto y el código de Netlify están en el monorepo, junto al resto de aplicaciones.

Leer el código↗Volver al catálogo→

Netlify · Agent Apps