# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://etherlime.gitbook.io/etherlime/developer-documentation/etherlime-cli/flattener.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
