> For the complete documentation index, see [llms.txt](https://docs.canso.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.canso.ai/ai-agents/how-tos/update-agent.md).

# Update the AI Agent

All the configurations in the AI Agent's [config.yaml](/ai-agents/getting-started.md#creating-the-project-bootstrap) file along with the AI agent's container image can be updated using the `gru agent update` command.

To update the configurations in the `config.yaml` file, make the changes in the file and execute the following command:

```bash
gru agent update .
```

To update the container image of the AI Agent, execute the following command:

```
gru agent update . --image=<new_image>
```

**Note:** `.` represents the context path of the AI Agent folder. Use the path of the AI agent folder if the command is being executed from a different directory.
