productivity
Netlify CLI for CI
Use the Netlify CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 7 read 0 write Bearer token auth
Netlify CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. The Netlify CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Netlify CLI for CI
kosmokrator integrations:configure netlify --set access_token="$NETLIFY_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call netlify.netlify_get_current_user '{}' --json Discovery Before Execution
Agents and scripts can inspect Netlify docs and schemas before choosing a function.
kosmo integrations:docs netlify --json
kosmo integrations:docs netlify.netlify_get_current_user --json
kosmo integrations:schema netlify.netlify_get_current_user --json
kosmo integrations:search "Netlify" --json
kosmo integrations:list --json Useful Netlify CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
netlify.netlify_get_current_user | Read | none | Get details of the currently authenticated Netlify user. Returns user ID, email, name, and account info. |
netlify.netlify_get_deploy | Read | deploy_id | Get detailed information about a specific Netlify deploy, including its state, build log, and commit details. |
netlify.netlify_get_site | Read | site_id | Get detailed information about a specific Netlify site, including its ID, name, URL, build settings, and deploy status. |
netlify.netlify_list_deploys | Read | site_id, page, per_page | List deploys for a Netlify site. Returns deploy IDs, states, branches, and commit references. |
netlify.netlify_list_dns_zones | Read | page, per_page | List all DNS zones configured in Netlify. Returns zone IDs, domain names, and nameservers. |
netlify.netlify_list_forms | Read | site_id | List all forms for a Netlify site. Returns form IDs, names, paths, and submission counts. |
netlify.netlify_list_sites | Read | name, page, per_page | List all Netlify sites. Returns site IDs, names, URLs, and build status. Use this to discover site identifiers needed for deploy and form operations. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.