# Compile changed code and load modules

Source: https://zotonic.com/docs/2931/compile-changed-code-and-load-modules

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

Language: en

Use make for the normal project build. On a running development node, the CLI also provides focused operations:

Use `make` for the normal project build. On a running development node, the CLI also provides focused operations:

```sh
bin/zotonic compile
bin/zotonic compilefile apps_user/garden/src/garden.erl
bin/zotonic load
```

`compile` asks the running file handler to compile modified Erlang sources. `compilefile` targets a file. `load` invokes the changed-BEAM loading pass; it does not take an individual module selector in the current implementation.

Read compiler output and logs before retesting. A command returning from an asynchronous request does not prove the entire rebuild has finished.

Use `update` when you need the broader compile/load/cache/index refresh workflow. Do not rebuild or flush everything repeatedly when a source error explains the failure. See [Automatic recompilation and file watching](/id/2932).

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2931?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/2931?language=en>)
