# update: Compile, load, flush, and rescan the server

Source: https://zotonic.com/docs/3042/update-compile-load-flush-and-rescan-the-server

URI: https://zotonic.com/id/3042

Language: en

Compile, load, flush, and rescan the server.

Syntax
------

```text
bin/zotonic update 
```

Requirements and effects
------------------------

Requires a running node and invokes the broad Zotonic update operation.

The update covers compilation and loading of code, cache flushing, and module rescanning. It can affect more than the site you are currently browsing. Inspect build output and module state afterwards. Prefer a targeted command when you only need to diagnose one stage of the development workflow.

Example
-------

```sh
bin/zotonic update
```

Run commands from the Zotonic workspace root. Replace `garden` with your site name where applicable.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3042?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3042?language=en>)
