> For the complete documentation index, see [llms.txt](https://aeproject.gitbook.io/aeproject/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aeproject.gitbook.io/aeproject/doc/developer-documentation/aeproject-cli/compile.md).

# aeproject compile

## Compile Sophia Contracts

```
aeproject compile
```

The `compile` command compiles Sophia Contracts with the `.aes` file extension. The default directory to be scanned for Sophia Contracts is `$projectDir/contracts`. The result of the compilation is the contract bytecode printed in the console. With the additional `--path` parameter you can specify the root-path of contracts to be compiled.

You can specify compiler using the `--compiler` parameter:

```
aeproject compile --compiler http://localhost:3080
```

The default project (generated via `aeproject init`) also contains an example how to include other contracts.
