docs/commands/agents.md
agentsManage Netlify AI agent tasks
The agents command will help you run AI agents on your Netlify sites to automate development tasks
Note: Agent tasks execute remotely on Netlify infrastructure, not locally.
Usage
netlify agents
Flags
filter (string) - For monorepos, specify the name of the application to run the command indebug (boolean) - Print debugging informationauth (string) - Netlify auth token - can be used to run this command without logging in| Subcommand | description |
|---|---|
agents:create | Create and run a new agent task on your site |
agents:list | List agent tasks for the current site |
agents:show | Show details of a specific agent task |
agents:stop | Stop a running agent task |
Examples
netlify agents:create --prompt "Add a contact form"
netlify agents:list --status running
netlify agents:show 60c7c3b3e7b4a0001f5e4b3a
agents:createCreate and run a new agent task on your site
Usage
netlify agents:create
Arguments
Flags
agent (string) - agent type (claude, codex, gemini)branch (string) - git branch to work onfilter (string) - For monorepos, specify the name of the application to run the command injson (boolean) - output result as JSONmodel (string) - model to use for the agentproject (string) - project ID or name (if not in a linked directory)prompt (string) - agent promptdebug (boolean) - Print debugging informationauth (string) - Netlify auth token - can be used to run this command without logging inExamples
netlify agents:create
netlify agents:create "Fix the login bug"
netlify agents:create --prompt "Add dark mode" --agent claude
netlify agents:create -p "Update README" -a codex -b feature-branch
netlify agents:create "Add tests" --project my-site-name
agents:listList agent tasks for the current site
Usage
netlify agents:list
Flags
filter (string) - For monorepos, specify the name of the application to run the command injson (boolean) - output result as JSONproject (string) - project ID or name (if not in a linked directory)status (string) - filter by status (new, running, done, error, cancelled)debug (boolean) - Print debugging informationauth (string) - Netlify auth token - can be used to run this command without logging inExamples
netlify agents:list
netlify agents:list --status running
netlify agents:list --json
agents:showShow details of a specific agent task
Usage
netlify agents:show
Arguments
Flags
filter (string) - For monorepos, specify the name of the application to run the command injson (boolean) - output result as JSONproject (string) - project ID or name (if not in a linked directory)debug (boolean) - Print debugging informationauth (string) - Netlify auth token - can be used to run this command without logging inExamples
netlify agents:show 60c7c3b3e7b4a0001f5e4b3a
netlify agents:show 60c7c3b3e7b4a0001f5e4b3a --json
agents:stopStop a running agent task
Usage
netlify agents:stop
Arguments
Flags
filter (string) - For monorepos, specify the name of the application to run the command injson (boolean) - output result as JSONproject (string) - project ID or name (if not in a linked directory)debug (boolean) - Print debugging informationauth (string) - Netlify auth token - can be used to run this command without logging inExamples
netlify agents:stop 60c7c3b3e7b4a0001f5e4b3a