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

# etherlime flatten

## Syntax

```
etherlime flatten [file] [solcVersion]
```

Parameters:

* `file` - The name of the contract from "./contract" folder that you

  want to be flattened.
* `solcVersion` - \[Optional] By specifying `solcVersion` you can set

  the version of the solc which will be used for compiling the smart

  contracts. By default it uses the solc version from your

  node\_modules or the default one from etherlime.

Running this command will flatten the given smart contract and will record all Solidity code in one file along with imported sources. It will create "./flat" folder where you can find the flattened contract.
